]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 May 2019 16:16:25 +0000 (18:16 +0200)
commit4c79b1e03cb26badf2648a700f186745ba2b3922
tree84b8f94e34d0a69847ba7f7b99fbd896e420c17d
parenta78beced9f6d349d65de89432dcd00e30dc352b4
p54: drop device reference count if fails to enable device

commit 8149069db81853570a665f5e5648c0e526dc0e43 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/intersil/p54/p54pci.c