ne2k-pci: Add pci_disable_device in error handling
authorJia-Ju Bai <baijiaju1990@163.com>
Tue, 23 Dec 2014 03:29:03 +0000 (11:29 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Dec 2014 07:20:55 +0000 (02:20 -0500)
For linux-3.18.0
The driver lacks pci_disable_device in error handling code of
ne2k_pci_init_one, so the device enabled by pci_enable_device is not
disabled when errors occur.
This patch fixes this problem.

Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/8390/ne2k-pci.c

Simple merge