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

Michael Ellerman mpe at ellerman.id.au
Mon Aug 10 19:27:00 AEST 2015


On Thu, 2015-16-04 at 12:18:50 UTC, weiyj_lk at 163.com wrote:
> From: Wei Yongjun <yongjun_wei at 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_wei at trendmicro.com.cn>

Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/35a7f41cc6bb7013e344

cheers


More information about the Linuxppc-dev mailing list