]> git.baikalelectronics.ru Git - kernel.git/commit
nvmem: core: add locking to nvmem_find_cell
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 9 Jun 2017 09:59:09 +0000 (10:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Jun 2017 10:08:27 +0000 (12:08 +0200)
commit1c1d394619dc47d76d582a14167145367e63c6a6
tree8ffb624c19c19f3ffe806facbd0f7a464bc7ed9c
parent0441a7da8769784f24e93af64ad002abf58efd82
nvmem: core: add locking to nvmem_find_cell

Adding entries to nvmem_cells and deleting entries from it is
protected by nvmem_cells_mutex. Therefore this mutex should
also protect iterating over the list.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/nvmem/core.c