Re: [PATCH] memory: jz4780-nemc: Fix return value check in jz4780_nemc_probe()

2020-08-04 Thread Krzysztof Kozlowski
On Tue, Aug 04, 2020 at 08:24:03AM +, Wei Yongjun wrote: > In case of error, the function devm_ioremap() returns NULL pointer not > ERR_PTR(). The IS_ERR() test in the return value check should be > replaced with NULL test. > > Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory

[PATCH] memory: jz4780-nemc: Fix return value check in jz4780_nemc_probe()

2020-08-04 Thread Wei Yongjun
In case of error, the function devm_ioremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver will use") Reported-by: Hulk Robot Signed-off-by: Wei