linux/drivers/net/wireless/rtl818x
Andrea Merello c1084e026b rtl818x_pci: fix pci probe returns success when it fails
There are several exit path from the PCI probe function.
Some of them, that are taken in case of errors, forget to set the "err"
variable, that is returned by the probe function.
This can lead to the kernel thinking the probe function succeeds while it
didn't, and this in turn causes extra calls to the "remove" function.

This patch fix this problem by ensuring "err" variable is assigned to a proper
non-zero value in each exit path.

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2014-07-01 14:26:27 -04:00
..
rtl8180 rtl818x_pci: fix pci probe returns success when it fails 2014-07-01 14:26:27 -04:00
rtl8187 rtl8187: make CTS-to-self protection work 2014-05-07 16:08:09 -04:00
Kconfig rtl818x: Update Kconfig for rtl8187se 2014-03-27 14:20:10 -04:00
Makefile rtl818x: move rtl8180 and rtl8187 to separate subdirectories 2010-12-22 13:45:32 -05:00
rtl818x.h rtl8180: add parentheses to REG_ADDR macros 2014-04-22 15:06:27 -04:00