diff options
| author | Ming Lei <ming.lei@redhat.com> | 2021-06-02 21:30:29 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-16 12:01:47 +0200 |
| commit | 5b537408f2733d510060e72596befa44c3435cb6 (patch) | |
| tree | 0dfe4ab3bb9f85f218be2433be1e5499a38a43b8 /kernel/trace | |
| parent | 0a31d1237aafc305ade0f886977450f6021b2d0c (diff) | |
| download | kernel_replicant_linux-5b537408f2733d510060e72596befa44c3435cb6.tar.gz kernel_replicant_linux-5b537408f2733d510060e72596befa44c3435cb6.tar.bz2 kernel_replicant_linux-5b537408f2733d510060e72596befa44c3435cb6.zip | |
scsi: core: Only put parent device if host state differs from SHOST_CREATED
commit 1e0d4e6225996f05271de1ebcb1a7c9381af0b27 upstream.
get_device(shost->shost_gendev.parent) is called after host state has
switched to SHOST_RUNNING. scsi_host_dev_release() shouldn't release the
parent device if host state is still SHOST_CREATED.
Link: https://lore.kernel.org/r/20210602133029.2864069-5-ming.lei@redhat.com
Cc: Bart Van Assche <bvanassche@acm.org>
Cc: John Garry <john.garry@huawei.com>
Cc: Hannes Reinecke <hare@suse.de>
Tested-by: John Garry <john.garry@huawei.com>
Reviewed-by: John Garry <john.garry@huawei.com>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace')
0 files changed, 0 insertions, 0 deletions
