[PATCH -next] firmware: arm_sdei: Fix return value check in sdei_present_dt()

James Morse james.morse at arm.com
Mon Jan 15 02:38:06 PST 2018


Hi Wei,

On 15/01/18 10:41, Wei Yongjun wrote:
> In case of error, the function of_platform_device_create() returns
> NULL pointer not ERR_PTR(). The IS_ERR() test in the return value
> check should be replaced with NULL test.

Bother, so it does!

Thanks for catching this.
Acked-by: James Morse <james.morse at arm.com>


Thanks,

James




More information about the linux-arm-kernel mailing list