]> git.baikalelectronics.ru Git - kernel.git/commit
p54: drop device reference count if fails to enable device
authorPan Bian <bianpan2016@163.com>
Wed, 17 Apr 2019 09:41:23 +0000 (17:41 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 16:56:56 +0000 (19:56 +0300)
commit65a424c5c6a6fb214b7a1057a6d03b43071e8431
treed5c4f4398cc94e0b3bc6641211c6a3f42d8331a8
parent6ad7474ad5fa9ce66a52e285bc78ecb33566a34b
p54: drop device reference count if fails to enable device

The function p54p_probe takes an extra reference count of the PCI
device. However, the extra reference count is not dropped when it fails
to enable the PCI device. This patch fixes the bug.

Cc: stable@vger.kernel.org
Signed-off-by: Pan Bian <bianpan2016@163.com>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/p54/p54pci.c