staging: logger: hold mutex while removing reader
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 22 Feb 2012 10:28:00 +0000 (15:58 +0530)
committerTodd Poynor <toddpoynor@google.com>
Wed, 16 Jan 2013 21:36:46 +0000 (13:36 -0800)
commit1bbba88f7775c1d3ce20f5cfefb9e3ed09c24d4b
treef2ba5b0a05485e1fc54f857e90c6f08bf1bd8d6f
parentfbad46f30d0ccb24fcadf4fa129d917fd0bfa1fe
staging: logger: hold mutex while removing reader

The readers list is traversed under the log->mutex lock
(for example from fix_up_readers()), but the deletion of
elements from this list is not being done under this lock.

Cc: Brian Swetland <swetland@google.com>
Cc: Dima Zavin <dima@android.com>
Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/logger.c