]> git.baikalelectronics.ru Git - kernel.git/commit
HID: hidraw: open count should not increase if error
authorAmit Nagal <helloin.amit@gmail.com>
Tue, 27 Sep 2011 17:41:58 +0000 (13:41 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 27 Sep 2011 16:42:22 +0000 (18:42 +0200)
commit36ab62145703f14bb6b131bd4278de5aa4b813e0
treecb3c9c31c9d15a31a112e885176e5931630848e0
parentabd2eb1b2ed31b19448e7670fc4a3c0487d0035e
HID: hidraw: open count should not increase if error

In hidraw_open, if hid_hw_power returns with error, hidraw device open count
should not increase.

Signed-off-by: Amit Nagal <helloin.amit@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c