From: Jiri Slaby Date: Wed, 22 Oct 2008 23:47:30 +0000 (+0200) Subject: HID: fix lock imbalance in hidraw X-Git-Tag: v2.6.28-rc3~106^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0f2c5945a917e776ccd394f0e1924e9502c2795f;p=linux-2.6-omap-h63xx.git HID: fix lock imbalance in hidraw Add omitted unlock_kernel() to hidraw_ioctl(). Added in 979c407e3b89b606e810fa494ef316896eadbfad (HID: Push down BKL into ioctl handler in hidraw). Corresponing sparse warning: drivers/hid/hidraw.c:267:9: warning: context imbalance in 'hidraw_ioctl': wrong count at exit drivers/hid/hidraw.c:267:9: context 'kernel_lock': wanted 0, got 1 Signed-off-by: Jiri Slaby Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/hidraw.c b/drivers/hid/hidraw.c index 1c23813995a..894d52e05bf 100644 --- a/drivers/hid/hidraw.c +++ b/drivers/hid/hidraw.c @@ -264,6 +264,7 @@ static long hidraw_ioctl(struct file *file, unsigned int cmd, default: ret = -ENOTTY; } + unlock_kernel(); return ret; }