linux/drivers/net/ethernet/sgi
Tang Bin a7654211d0 net: sgi: ioc3-eth: Fix return value check in ioc3eth_probe()
In the function devm_platform_ioremap_resource(), if get resource
failed, the return value is ERR_PTR() not NULL. Thus it must be
replaced by IS_ERR(), or else it may result in crashes if a critical
error path is encountered.

Fixes: 0ce5ebd24d ("mfd: ioc3: Add driver for SGI IOC3 chip")
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>
2020-05-21 17:26:54 -07:00
..
ioc3-eth.c net: sgi: ioc3-eth: Fix return value check in ioc3eth_probe() 2020-05-21 17:26:54 -07:00
Kconfig mfd: ioc3: Add driver for SGI IOC3 chip 2020-01-09 15:30:59 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
meth.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
meth.h net: meth: remove spurious copyright text 2020-04-23 15:59:43 -07:00