]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: check the return value of nvmem_add_cells()
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Fri, 21 Sep 2018 13:40:07 +0000 (06:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Sep 2018 13:14:54 +0000 (15:14 +0200)
commit800431f5fa423eb149236c18a6d2678ed5372791
tree203df28300e9de263987dba22d7d4a7f7a01dd7e
parent938d44058fc4b3e13de8bb9455de641f851b0622
nvmem: check the return value of nvmem_add_cells()

This function can fail so check its return value in nvmem_register()
and act accordingly.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c