commit | f558c8072c3461b65c12c0068b108f78cebc8246 | [log] [tgz] |
---|---|---|
author | Claudiu Beznea <claudiu.beznea@microchip.com> | Thu Sep 30 13:09:28 2021 +0300 |
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | Sat Oct 02 17:40:34 2021 +0200 |
tree | bf117e0ff7e66fc22b9387a0d37e2f973173a31d | |
parent | 73d59c9263a0fbcf8f769daea9c1fe33ae38c9e8 [diff] |
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: bd3127733f2c ("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>