diff options
author | 2022-08-29 19:01:15 +0800 | |
---|---|---|
committer | 2022-09-06 22:22:24 -0400 | |
commit | 7eff437b5ee1309b34667844361c6bbb5c97df05 (patch) | |
tree | 4693dba47b941a182745c7739172870a21746d27 /drivers/scsi/esas2r | |
parent | scsi: ufs: core: Print UFSHCD capabilities in controller's sysfs node (diff) | |
download | linux-7eff437b5ee1309b34667844361c6bbb5c97df05.tar.gz linux-7eff437b5ee1309b34667844361c6bbb5c97df05.tar.bz2 linux-7eff437b5ee1309b34667844361c6bbb5c97df05.zip |
scsi: 3w-9xxx: Avoid disabling device if failing to enable it
The original code will "goto out_disable_device" and call
pci_disable_device() if pci_enable_device() fails. The kernel will generate
a warning message like "3w-9xxx 0000:00:05.0: disabling already-disabled
device".
We shouldn't disable a device that failed to be enabled. A simple return is
fine.
Link: https://lore.kernel.org/r/20220829110115.38789-1-fantasquex@gmail.com
Reported-by: Zheyu Ma <zheyuma97@gmail.com>
Signed-off-by: Letu Ren <fantasquex@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/esas2r')
0 files changed, 0 insertions, 0 deletions