From: Alexey Khoroshilov Date: Fri, 1 Feb 2013 12:09:19 +0000 (+0000) Subject: stmmac: don't return zero on failure path in stmmac_pci_probe() X-Git-Tag: v3.9-rc1~139^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f463855c7d5a0ed0faa62497f3006336e74ee16;p=pandora-kernel.git stmmac: don't return zero on failure path in stmmac_pci_probe() If stmmac_dvr_probe() fails in stmmac_pci_probe(), it breaks off initialization, deallocates all resources, but returns zero. The patch adds -ENODEV as return value in this case. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: David S. Miller --- Reading git-diff-tree failed