]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 19 Oct 2018 07:49:00 +0000 (09:49 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Mon, 5 Nov 2018 21:24:05 +0000 (22:24 +0100)
commit53b9d8f1128098daec46c0db8aaf42f3e88b0c4c
tree8f8582ddc239b6b4a4705fe729aeaffecc6b24d3
parent1c915645d02a566f2d1d751b77fd6e6f63530917
mtd: maps: physmap: Check mtd_device_{parse_register, unregister}() ret code

mtd_device_parse_register() and mtd_device_unregister() can fail,
check their return code and propagate the error to the upper layer
if needed.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
drivers/mtd/maps/physmap.c