aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-06-26 12:44:19 +0800
committerDavid S. Miller <davem@davemloft.net>2021-06-28 14:20:22 -0700
commit8f4c38f7588650690ffa08f7784c831e0a8c38e7 (patch)
treeb6df2cda795424945ccf611123117295d226fcec /drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c
parentnet: sparx5: check return value after calling platform_get_resource() (diff)
downloadlinux-dev-8f4c38f7588650690ffa08f7784c831e0a8c38e7.tar.xz
linux-dev-8f4c38f7588650690ffa08f7784c831e0a8c38e7.zip
net: sparx5: fix return value check in sparx5_create_targets()
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 3cfa11bac9bb ("net: sparx5: add the basic sparx5 driver") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5/sparx5_switchdev.c')
0 files changed, 0 insertions, 0 deletions