]> git.baikalelectronics.ru Git - kernel.git/commit
power: reset: at91-reset: check properly the return value of devm_of_iomap
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 30 Sep 2021 10:09:28 +0000 (13:09 +0300)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sat, 2 Oct 2021 15:40:34 +0000 (17:40 +0200)
commitae48e63c64e67653014eeebea5390cf9b05c5655
treebf117e0ff7e66fc22b9387a0d37e2f973173a31d
parent3c8bc7fec2c6f1b1616a9ce98760b205291ee972
power: reset: at91-reset: check properly the return value of devm_of_iomap

devm_of_iomap() returns error code or valid pointer. Check its return
value with IS_ERR().

Fixes: 9f731d28b36b ("power: reset: at91-reset: use devm_of_iomap")
Reported-by: Cristian Birsan <cristian.birsan@microchip.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/reset/at91-reset.c