commit | 974518d3da69707a619a65e2ea5b6a36fa9c52ac | [log] [tgz] |
---|---|---|
author | Jim Blackler <jimblackler@google.com> | Thu Jun 13 11:54:36 2019 +0100 |
committer | Suren Baghdasaryan <surenb@google.com> | Fri Aug 16 03:12:03 2019 +0000 |
tree | 695b3215c6538454f25d5cdc688710ff1ca80389 | |
parent | d1f8a9bb810e4f5905fd5aee5ad25986f2f0d36f [diff] |
ANDROID: Avoid taking multiple locks in handle_lmk_event Conflicting lock events have been reported resulting from rcu_read_lock, mmap_sem (in get_cmdline) and lmk_event_lock. This CL avoids the possibility of these conditions by moving handle_lmk_event outside rcu_read_lock and invoking get_cmdline before lmk_event_lock is taken. Bug: 133479338, 133829075 Signed-off-by: Jim Blackler <jimblackler@google.com> Change-Id: Ib3c32587472bd972e3ac108798e2af3f4a5c329a