提交 0f2c5945 编写于 作者: J Jiri Slaby 提交者: Jiri Kosina

HID: fix lock imbalance in hidraw

Add omitted unlock_kernel() to hidraw_ioctl().
Added in 979c407e
(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: NJiri Slaby <jirislaby@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 b4d8e473
...@@ -264,6 +264,7 @@ static long hidraw_ioctl(struct file *file, unsigned int cmd, ...@@ -264,6 +264,7 @@ static long hidraw_ioctl(struct file *file, unsigned int cmd,
default: default:
ret = -ENOTTY; ret = -ENOTTY;
} }
unlock_kernel();
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册