]> 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)
commitee2328df152cdbb9dc2334e75fbf4e39db19a2da
treed5c4f4398cc94e0b3bc6641211c6a3f42d8331a8
parentb33a89443c32035a2a71bda323dd967918474be2
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