mirror of https://gitee.com/openkylin/linux.git
c1084e026b
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> |
||
---|---|---|
.. | ||
Makefile | ||
dev.c | ||
grf5101.c | ||
grf5101.h | ||
max2820.c | ||
max2820.h | ||
rtl8180.h | ||
rtl8225.c | ||
rtl8225.h | ||
rtl8225se.c | ||
rtl8225se.h | ||
sa2400.c | ||
sa2400.h |