aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ptp/ptp_clock.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2016-10-01 09:12:29 +0000
committerDavid S. Miller <davem@davemloft.net>2016-10-03 21:53:03 -0400
commit0fd7d43fbc4aaf358005231a6bed27eb1c2f60c3 (patch)
tree85e647d9d49add35a16f454521c217cea7e2a29b /drivers/ptp/ptp_clock.c
parentnet: skbuff: Limit skb_vlan_pop/push() to expect skb->data at mac header (diff)
downloadlinux-dev-0fd7d43fbc4aaf358005231a6bed27eb1c2f60c3.tar.xz
linux-dev-0fd7d43fbc4aaf358005231a6bed27eb1c2f60c3.zip
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: 54e19bc74f33 ("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>
Diffstat (limited to 'drivers/ptp/ptp_clock.c')
0 files changed, 0 insertions, 0 deletions