]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
Bluetooth: hidp: fix possible might sleep error in hidp_session_thread
authorJeffy Chen <jeffy.chen@rock-chips.com>
Thu, 8 Jun 2017 02:00:07 +0000 (19:00 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Wed, 21 Jun 2017 09:45:42 +0000 (02:45 -0700)
commit0a88ad7722d05f33a183a795c8d063352b969fbe
treeaf76e8abc603cd4c29d618e5ccdd149f63fac5cb
parentbc12b49a58b58a1717ab945fb09d232a64c0b081
Bluetooth: hidp: fix possible might sleep error in hidp_session_thread

1/ Fix could not wake up by wake attempts on original wait queues.
2/ Remove unnecessary memory barrier before wake_up_* functions.

1/ Make hidp_session_wake_function static.
2/ Remove unnecessary default_wake_function.

Bug 200313399
Bug 200316957

Change-Id: I406345dcb9ba2289a4693600c5641c415fb732ef
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Shobek Sam Attupurath <sattupurath@nvidia.com>
Reviewed-on: http://git-master/r/1498057
Tested-by: Rohit Vaswani <rvaswani@nvidia.com>
Reviewed-by: Gaurav Asati <gasati@nvidia.com>
Reviewed-by: Nagarjuna Kristam <nkristam@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
net/bluetooth/hidp/core.c