diff options
author | Sumit Saxena <[email protected]> | 2022-05-26 13:01:57 -0400 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2022-06-01 22:23:09 -0400 |
commit | 4094981db7b6ed6ebe3ebe398d8d9136ac5c44c8 (patch) | |
tree | 0c04943b310a439ce7d2ccc5db6bc06580555d34 /net/lapb/lapb_subr.c | |
parent | f9f0a46141e2e39bedb4779c88380d1b5f018c14 (diff) |
scsi: mpi3mr: Rework mrioc->bsg_device model to fix warnings
During driver unload, mrioc->bsg_device reference count becomes
negative. Also, as reported in [1], the driver's bsg_device model had few
more bugs. Fix all these up.
[1] https://marc.info/?l=linux-scsi&m=165183971411991&w=2
Link: https://lore.kernel.org/r/[email protected]
Fixes: 4268fa751365 ("scsi: mpi3mr: Add bsg device support")
Reported-by: Dan Carpenter <[email protected]>
Tested-by: Tomas Henzl <[email protected]>
Signed-off-by: Sumit Saxena <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions