HID: fix possible deadlock in hidraw_read
authorJiri Kosina <jkosina@suse.cz>
Mon, 12 Oct 2009 09:25:56 +0000 (11:25 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 12 Oct 2009 09:25:56 +0000 (11:25 +0200)
If the loop in hidraw_read() loops more than once, then we might
end up trying to acquire already locked mutex, casuing a deadlock.

Reported-by: iceberg <iceberg@ispras.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

No differences found