Skip to content
Commit 162809df authored by Arvind Yadav's avatar Arvind Yadav Committed by David S. Miller
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 52f40e9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment