From: Andrea Merello Date: Mon, 30 Jun 2014 16:19:40 +0000 (+0200) Subject: rtl818x_pci: fix pci probe returns success when it fails X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~210^2~46^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1084e026b4fe73fcc54f82d6a6bd26d9372d583;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed