Thread (3 messages) flat view 3 messages, 3 authors, 2016-10-04

Re: [PATCH -next] net: qcom/emac: fix return value check in emac_sgmii_config()

From: David Miller <davem@davemloft.net>
Date: 2016-10-04 01:53:41

From: Wei Yongjun <redacted>
Date: Sat,  1 Oct 2016 09:12:29 +0000
From: Wei Yongjun <redacted>

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 <redacted>
Applied, thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help