diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-01-27 16:38:03 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-01-27 20:24:30 (GMT) |
commit | 9afec6efc6b1043692eada758cd7837623dd943b (patch) | |
tree | b377e0790a0889110cf17a20470cc433b626336b /drivers/lguest | |
parent | 24e579c8898aa641ede3149234906982290934e5 (diff) | |
download | linux-9afec6efc6b1043692eada758cd7837623dd943b.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/lguest')
0 files changed, 0 insertions, 0 deletions