diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2016-12-14 22:03:30 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-19 19:03:34 +0300 |
commit | 162809dfc2bfb31eb54dc67733bcdab0f2d1534d (patch) | |
tree | c299f13fe82353a80863cf3182dc20f2d3732bfe /include/sound | |
parent | 52f40e9d657cc126b766304a5dd58ad73b02ff46 (diff) | |
download | linux-162809dfc2bfb31eb54dc67733bcdab0f2d1534d.tar.xz |
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 'include/sound')
0 files changed, 0 insertions, 0 deletions