From: Andy Shevchenko Date: Tue, 27 Jan 2015 16:38:03 +0000 (+0200) Subject: stmmac: prevent probe drivers to crash kernel X-Git-Tag: fixes-v4.0-rc1~235^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9afec6efc6b1043692eada758cd7837623dd943b;p=pandora-kernel.git stmmac: prevent probe drivers to crash kernel In the case when alloc_netdev fails we return NULL to a caller. But there is no check for NULL in the probe drivers. This patch changes NULL to an error pointer. The function description is amended to reflect what we may get returned. Signed-off-by: Andy Shevchenko Signed-off-by: David S. Miller --- Reading git-diff-tree failed