commit | 162809dfc2bfb31eb54dc67733bcdab0f2d1534d | [log] [tgz] |
---|---|---|
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | Thu Dec 15 00:33:30 2016 +0530 |
committer | David S. Miller <davem@davemloft.net> | Mon Dec 19 11:03:34 2016 -0500 |
tree | c299f13fe82353a80863cf3182dc20f2d3732bfe | |
parent | 52f40e9d657cc126b766304a5dd58ad73b02ff46 [diff] |
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>