On 5/26/22 19:01, Sumit Saxena wrote: > During driver unload, "mrioc->bsg_device" reference count becomes negative. > Also, as reported in [1], driver's bsg_device model had few more > bugs so reworked it to fix up them. > > [1] https://marc.info/?l=linux-scsi&m=165183971411991&w=2 > > Fixes: 4268fa751365 ("scsi: mpi3mr: Add bsg device support") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Sumit Saxena <sumit.saxena@xxxxxxxxxxxx> I've been seeing the issue when rmmod the driver, with this patch it's gone. Tested-by: Tomas Henzl <thenzl@xxxxxxxxxx>