]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit8149069db81853570a665f5e5648c0e526dc0e43
treed5c4f4398cc94e0b3bc6641211c6a3f42d8331a8
parent84242b82d81c54e009a2aaa74d3d9eff70babf56
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