summaryrefslogtreecommitdiffstats
path: root/kernel/compat.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2016-12-15 00:33:30 +0530
committerDavid S. Miller <davem@davemloft.net>2016-12-19 11:03:34 -0500
commit162809dfc2bfb31eb54dc67733bcdab0f2d1534d (patch)
treec299f13fe82353a80863cf3182dc20f2d3732bfe /kernel/compat.c
parent52f40e9d657cc126b766304a5dd58ad73b02ff46 (diff)
downloadtalos-obmc-linux-162809dfc2bfb31eb54dc67733bcdab0f2d1534d.tar.gz
talos-obmc-linux-162809dfc2bfb31eb54dc67733bcdab0f2d1534d.zip
net: ethernet: cavium: octeon: octeon_mgmt: Handle return NULL error from devm_ioremap
Here, If devm_ioremap will fail. It will return NULL. Kernel can run into a NULL-pointer dereference. This error check will avoid NULL pointer dereference. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/compat.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud