]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam_periph: fix bug in camperiphunitnext logic
authorWarner Losh <imp@FreeBSD.org>
Fri, 5 Nov 2021 14:56:27 +0000 (08:56 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 5 Nov 2021 14:56:27 +0000 (08:56 -0600)
commit710a519ebbe34850ee37e688896a761606be5009
tree9eee115af5c64e4fdb9a35887d6fbb3f8490e0d5
parentbee0133fb937e519623324fd1ae7214d59a03aca
cam_periph: fix bug in camperiphunitnext logic

If we assigned just a lun as a wired unit (something that camperiphunit
will accept), we failed to properly skip over that unit when computing a
next unit number. Add lun so the code matches the comments that we have
to skip all the same criteria that camperiphunit uses to select wired
units for a driver.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D32682
sys/cam/cam_periph.c