[PATCH -next] net: axienet: Fix return value check in axienet_probe()

David Miller davem at davemloft.net
Wed Jul 20 14:47:51 PDT 2016


From: Wei Yongjun <weiyj_lk at 163.com>
Date: Tue, 19 Jul 2016 11:23:24 +0000

> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> In case of error, the function of_parse_phandle() returns NULL
> pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL test.
> 
> Fixes: 46aa27df8853 ('net: axienet: Use devm_* calls')
> Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

Applied.



More information about the linux-arm-kernel mailing list