]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commit
hid: jarvis: Fix rare case deadlock
authorXia Yang <xiay@nvidia.com>
Wed, 28 Jan 2015 02:17:20 +0000 (18:17 -0800)
committerXia Yang <xiay@nvidia.com>
Thu, 19 Mar 2015 22:47:12 +0000 (15:47 -0700)
commit0b74f55e467ac9abb51b2f42c3645708383863f3
tree2beeaa4d587816e387ff75c967d4be98c478eda1
parentf56d471260d99b15b57e3364bbc1e775430242f0
hid: jarvis: Fix rare case deadlock

snd_pcm_resume() turns out to hold the same lock
as snd_pcm_suspend() and causes the same deadlock
fixed previously, only in less chance.  There is no
easy way around this deadlock in kernel thus we do
a best effort prevent.  In the rare case it still
happens, we avoid abort the operation and let userspace
try again.

Bug 1599000

Change-Id: I09ca660a8d785dff76a3cf44e5b67c9ce5b147a9
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/678118
(cherry picked from commit 6c7e1a772234df7ed757859f1f5840885de26625)
Reviewed-on: http://git-master/r/716503
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
drivers/hid/hid-atv-jarvis.c