diff options
author | Arvind Yadav <[email protected]> | 2016-12-15 00:33:30 +0530 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-12-19 11:03:34 -0500 |
commit | 162809dfc2bfb31eb54dc67733bcdab0f2d1534d (patch) | |
tree | c299f13fe82353a80863cf3182dc20f2d3732bfe /tools/perf/util/trace-event-scripting.c | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions