[ldv-project] [PATCH] stmmac: don't return zero on failure path in stmmac_pci_probe()

David Miller davem at davemloft.net
Mon Feb 4 01:14:30 MSK 2013


From: Alexey Khoroshilov <khoroshilov at ispras.ru>
Date: Sat,  2 Feb 2013 02:09:19 +0400

> 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 <khoroshilov at ispras.ru>

Applied to net-next, thanks.



More information about the ldv-project mailing list