Files
Letu Ren a51d20e0ae scsi: 3w-9xxx: Avoid disabling device if failing to enable it
[ Upstream commit 7eff437b5e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-10-21 12:39:21 +02:00
..
2022-05-23 23:24:09 -04:00
2022-05-23 23:24:10 -04:00
2022-07-26 22:13:29 -04:00
2022-09-01 01:02:10 -04:00
2022-06-27 22:56:21 -04:00
2022-06-27 22:56:21 -04:00
2022-09-01 01:02:10 -04:00
2022-09-01 01:02:10 -04:00
2022-09-01 01:02:10 -04:00
2022-09-01 01:02:10 -04:00
2022-05-08 14:28:18 -04:00
2022-06-28 06:30:26 -06:00