linux/drivers/net/ethernet/qualcomm/emac
Wei Yongjun 0fd7d43fbc net: qcom/emac: fix return value check in emac_sgmii_config()
In case of error, the function ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.

Also add check for return value of platform_get_resource().

Fixes: 54e19bc74f ("net: qcom/emac: do not use devm on internal
phy pdev")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-03 21:53:03 -04:00
..
emac-mac.c
emac-mac.h
emac-phy.c net: qcom/emac: initial ACPI support 2016-09-29 01:50:13 -04:00
emac-phy.h
emac-sgmii.c net: qcom/emac: fix return value check in emac_sgmii_config() 2016-10-03 21:53:03 -04:00
emac-sgmii.h
emac.c net: qcom/emac: initial ACPI support 2016-09-29 01:50:13 -04:00
emac.h
Makefile