]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix return value about devm_platform_ioremap_resource()
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 22 May 2020 11:03:21 +0000 (19:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 May 2020 23:28:25 +0000 (16:28 -0700)
commitfbb84fde577432513874c2dff388fc28e760c0c0
tree923489ccb4df091a557366098084e2541dc0a713
parent41027c890044f6438fb32bf9ba7ea9d588cfee33
net: Fix return value about devm_platform_ioremap_resource()

When call function devm_platform_ioremap_resource(), we should use IS_ERR()
to check the return value and return PTR_ERR() if failed.

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/can/ifi_canfd/ifi_canfd.c
drivers/net/can/sun4i_can.c
drivers/net/dsa/b53/b53_srab.c
drivers/net/ethernet/marvell/pxa168_eth.c