Re: [PATCH 2/3] nvmem: core: add locking to nvmem_find_cell

2017-06-07 Thread Srinivas Kandagatla
On 04/06/17 12:01, Heiner Kallweit wrote: 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 --- drivers/nvmem/core.c | 8

Re: [PATCH 2/3] nvmem: core: add locking to nvmem_find_cell

2017-06-07 Thread Srinivas Kandagatla
On 04/06/17 12:01, Heiner Kallweit wrote: 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 --- drivers/nvmem/core.c | 8 +++- 1 file changed, 7

[PATCH 2/3] nvmem: core: add locking to nvmem_find_cell

2017-06-04 Thread Heiner Kallweit
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 --- drivers/nvmem/core.c | 8 +++- 1 file changed, 7 insertions(+), 1

[PATCH 2/3] nvmem: core: add locking to nvmem_find_cell

2017-06-04 Thread Heiner Kallweit
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 --- drivers/nvmem/core.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git