diff options
author | Ming Lei <ming.lei@redhat.com> | 2021-06-02 21:30:29 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-06-07 22:12:44 -0400 |
commit | 1e0d4e6225996f05271de1ebcb1a7c9381af0b27 (patch) | |
tree | b1ace5f79c2eb2767501365652c1b6221ef2c63d /drivers/rtc/rtc-mt7622.c | |
parent | 11714026c02d613c30a149c3f4c4a15047744529 (diff) |
scsi: core: Only put parent device if host state differs from SHOST_CREATED
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>
Diffstat (limited to 'drivers/rtc/rtc-mt7622.c')
0 files changed, 0 insertions, 0 deletions