Re: [PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-17 Thread Krzysztof Kozlowski
On Mon, Aug 03, 2020 at 05:36:07PM +0300, Dan Carpenter wrote: > The devm_ioremap() function returns NULL on error, it doesn't return > error pointers. This bug could lead to an Oops during probe. > > Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver > will use") > Sig

Re: [PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-06 Thread Paul Cercueil
Le lun. 3 août 2020 à 17:36, Dan Carpenter a écrit : The devm_ioremap() function returns NULL on error, it doesn't return error pointers. This bug could lead to an Oops during probe. Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver will use") Signed-off-by: Da

Re: [PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-03 Thread Krzysztof Kozlowski
On Mon, Aug 03, 2020 at 05:36:07PM +0300, Dan Carpenter wrote: > The devm_ioremap() function returns NULL on error, it doesn't return > error pointers. This bug could lead to an Oops during probe. > > Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver > will use") > Sig

[PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-03 Thread Dan Carpenter
The devm_ioremap() function returns NULL on error, it doesn't return error pointers. This bug could lead to an Oops during probe. Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver will use") Signed-off-by: Dan Carpenter --- drivers/memory/jz4780-nemc.c | 4 ++-- 1 fi