staging: logger: hold mutex while removing reader
authorRabin Vincent <rabin.vincent@stericsson.com>
Wed, 22 Feb 2012 10:28:00 +0000 (15:58 +0530)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Thu, 22 Apr 2021 08:32:05 +0000 (10:32 +0200)
commit2c04b2506818b87d41cfe9f361bf2d2ba201c53f
treed066d67ad49605e7e27add7ff00f5c66f81ceb2b
parent9511f9c7cd45eecbf46537be6ae244306f16bc1d
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