Re: [PATCH -next] nvmem: Fix return value check in rmem_read()

2021-02-23 Thread Nicolas Saenz Julienne
On Tue, 2021-02-23 at 14:22 +, Wei Yongjun wrote: > In case of error, the function memremap() returns NULL pointer > not ERR_PTR(). The IS_ERR() test in the return value check > should be replaced with NULL test. > > Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem")

[PATCH -next] nvmem: Fix return value check in rmem_read()

2021-02-23 Thread Wei Yongjun
In case of error, the function memremap() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 5a3fa75a4d9c ("nvmem: Add driver to expose reserved memory as nvmem") Reported-by: Hulk Robot Signed-off-by: Wei Yongjun ---