aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hid/hidraw.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c
index a8c2b7b6220a..6d65d4e35120 100644
--- a/drivers/hid/hidraw.c
+++ b/drivers/hid/hidraw.c
@@ -272,8 +272,10 @@ static int hidraw_open(struct inode *inode, struct file *file)
272 dev = hidraw_table[minor]; 272 dev = hidraw_table[minor];
273 if (!dev->open++) { 273 if (!dev->open++) {
274 err = hid_hw_power(dev->hid, PM_HINT_FULLON); 274 err = hid_hw_power(dev->hid, PM_HINT_FULLON);
275 if (err < 0) 275 if (err < 0) {
276 dev->open--;
276 goto out_unlock; 277 goto out_unlock;
278 }
277 279
278 err = hid_hw_open(dev->hid); 280 err = hid_hw_open(dev->hid);
279 if (err < 0) { 281 if (err < 0) {