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)
commitf554ff80339b4005856e6a86454d6ea2bb962ee5
treecb3c9c31c9d15a31a112e885176e5931630848e0
parent9561f7faa45cb855b1ba83a4acf3f2ad3665e71f
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