staging: logger: hold mutex while removing reader
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 22 Feb 2012 10:28:00 +0000 (15:58 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Feb 2012 20:03:14 +0000 (12:03 -0800)
commit47de87a234aac8b2121557f3903bb16bb678af67
treecd537ccb1da065bccc0d16b8396c9f50f89c1db8
parent6f6c4dc040a6b4cbed02a57a78f5d08a86d84a38
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