diff options
author | Ming Lei <[email protected]> | 2021-10-08 13:01:18 +0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2021-10-12 22:08:23 -0400 |
commit | f2b85040acec9a928b4eb1b57a989324e8e38d3f (patch) | |
tree | 1dab47ff0d111341e0e51737e94fe6fbc4072a6b /lib/test_overflow.c | |
parent | 6fd13d699d24beaa28310848fe65fd898fbb9043 (diff) |
scsi: core: Put LLD module refcnt after SCSI device is released
SCSI host release is triggered when SCSI device is freed. We have to make
sure that the low-level device driver module won't be unloaded before SCSI
host instance is released because shost->hostt is required in the release
handler.
Make sure to put LLD module refcnt after SCSI device is released.
Fixes a kernel panic of 'BUG: unable to handle page fault for address'
reported by Changhui and Yi.
Link: https://lore.kernel.org/r/[email protected]
Cc: Greg Kroah-Hartman <[email protected]>
Reported-by: Changhui Zhong <[email protected]>
Reported-by: Yi Zhang <[email protected]>
Tested-by: Yi Zhang <[email protected]>
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions