]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: ixp4xx: Add error handling in ixp4xx_eth_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 23 Apr 2020 02:16:31 +0000 (10:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Apr 2020 22:32:45 +0000 (15:32 -0700)
commitb1a86ac2d2293dac2ff0025a9453d1bd5e0aa9e6
tree9c084fd69420a52233f35227b4788ee9753b6421
parenta081dd1f5c533653b09090e687769b389df4677d
net: ethernet: ixp4xx: Add error handling in ixp4xx_eth_probe()

The function ixp4xx_eth_probe() does not perform sufficient error
checking after executing devm_ioremap_resource(), which can result
in crashes if a critical error path is encountered.

Fixes: 7a64d8707fdb ("ARM/net: ixp4xx: Pass ethernet physical base as resource")
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xscale/ixp4xx_eth.c