Re: powerpc/4xx: Fix return value check in hsta_msi_probe()

2015-08-10 Thread Michael Ellerman
On Thu, 2015-16-04 at 12:18:50 UTC, weiyj...@163.com wrote: From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the functions platform_get_resource() and kmalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test.

[PATCH] powerpc/4xx: Fix return value check in hsta_msi_probe()

2015-04-16 Thread weiyj_lk
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the functions platform_get_resource() and kmalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn ---