summaryrefslogtreecommitdiff
path: root/mm/swap_state.c
diff options
context:
space:
mode:
authorRupesh Tatiya <rtatiya@codeaurora.org>2015-10-09 17:13:32 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:13:00 -0700
commit6d7af116f255a99077867c16c5faa5c013936197 (patch)
tree0b38ba091e2f0ffe1c94f41dee647eade385ff51 /mm/swap_state.c
parentfdffe2c952af8d0d19a7b5c0391d20961205ed45 (diff)
bluetooth: wait for write_work from protocol layer to finish
Simplify the line discipline close function. The write work in line discipline might be called from three places - namely tty driver, hci device and protocol. During line discipline close, stop hci device and protocol layer from submitting new work. Then perform cancel_work_sync. Further, protocol close will free protocol device but it can referenced in work handler. Use a lock at line discipline (parent of protocol) to prevent NULL pointer dereference. Change-Id: I96137194873627ce9e1c72e5883e7e45cd01842a Signed-off-by: Rupesh Tatiya <rtatiya@codeaurora.org>
Diffstat (limited to 'mm/swap_state.c')
0 files changed, 0 insertions, 0 deletions