Files
linux/drivers/scsi
Letu Ren ddb6b1906f 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-26 13:15:47 +02:00
..
2020-12-29 13:44:50 +01:00
2011-07-26 16:49:47 -07:00
2016-07-20 17:38:35 -06:00
2015-04-27 10:10:19 -07:00
2015-04-27 10:04:39 -07:00
2015-04-27 10:05:55 -07:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2015-04-17 10:13:56 -07:00
2015-11-25 22:08:55 -05:00
2011-03-31 11:26:23 -03:00
2016-02-23 21:27:02 -05:00
2014-07-17 22:07:37 +02:00
2016-05-10 22:01:07 -04:00
2013-04-09 14:13:16 -04:00
2017-12-20 10:07:22 +01:00
2016-02-25 21:10:53 -05:00
2011-03-31 11:26:23 -03:00
2019-11-28 18:28:23 +01:00
2013-04-09 14:13:27 -04:00
2016-01-27 20:36:10 +08:00
2021-05-22 10:40:25 +02:00
2016-01-27 20:36:10 +08:00
2016-09-26 20:49:25 -04:00
2013-04-09 14:13:15 -04:00
2010-05-02 15:55:03 -04:00
2014-07-17 22:07:35 +02:00
2011-03-31 11:26:23 -03:00
2014-11-24 20:01:28 +01:00
2011-03-31 11:26:23 -03:00
2012-02-21 11:40:37 +01:00
2016-02-23 21:27:02 -05:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2016-11-28 15:51:31 -05:00
2016-02-23 21:27:02 -05:00
2021-05-22 10:40:26 +02:00
2022-01-27 08:47:40 +01:00
2022-01-27 08:47:40 +01:00
2014-11-12 11:15:57 +01:00
2015-11-18 11:59:09 -05:00
2014-11-20 09:11:15 +01:00
2021-05-22 10:40:26 +02:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:15 -04:00