aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2015-01-27 16:38:03 +0000
committerDavid S. Miller <[email protected]>2015-01-27 20:24:30 +0000
commit9afec6efc6b1043692eada758cd7837623dd943b (patch)
treeb377e0790a0889110cf17a20470cc433b626336b /lib/mpi/mpi-cmp.c
parentbnx2x: fix napi poll return value for repoll (diff)
downloadkernel-9afec6efc6b1043692eada758cd7837623dd943b.tar.gz
kernel-9afec6efc6b1043692eada758cd7837623dd943b.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions