linux/drivers/net/wireless/rtl818x/rtl8180
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
..
Makefile rtl8180: change module name in rtl818x_pci 2014-04-22 15:06:27 -04:00
dev.c rtl818x_pci: fix pci probe returns success when it fails 2014-07-01 14:26:27 -04:00
grf5101.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
grf5101.h Update e-mail address for Andrea Merello (resubmit) 2013-08-26 14:10:40 -04:00
max2820.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
max2820.h Update e-mail address for Andrea Merello (resubmit) 2013-08-26 14:10:40 -04:00
rtl8180.h rtl818x_pci: handle broken PIO mapping 2014-07-01 14:26:27 -04:00
rtl8225.c rtl8180: introduce functions for setting ANAPARAM 2 and 3 params 2014-03-27 14:20:08 -04:00
rtl8225.h
rtl8225se.c rtl8180: add RF code for rtl8225 zebra v4 2014-03-27 14:20:08 -04:00
rtl8225se.h rtl8180: add RF code for rtl8225 zebra v4 2014-03-27 14:20:08 -04:00
sa2400.c wireless: delete non-required instances of include <linux/init.h> 2014-01-03 15:37:01 -05:00
sa2400.h Update e-mail address for Andrea Merello (resubmit) 2013-08-26 14:10:40 -04:00