diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-10-08 08:01:18 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-10-13 05:08:23 +0300 |
commit | f2b85040acec9a928b4eb1b57a989324e8e38d3f (patch) | |
tree | 1dab47ff0d111341e0e51737e94fe6fbc4072a6b /net/unix/unix_bpf.c | |
parent | 6fd13d699d24beaa28310848fe65fd898fbb9043 (diff) | |
download | linux-f2b85040acec9a928b4eb1b57a989324e8e38d3f.tar.xz |
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/20211008050118.1440686-1-ming.lei@redhat.com
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reported-by: Changhui Zhong <czhong@redhat.com>
Reported-by: Yi Zhang <yi.zhang@redhat.com>
Tested-by: Yi Zhang <yi.zhang@redhat.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'net/unix/unix_bpf.c')
0 files changed, 0 insertions, 0 deletions