Commit ae5e49c7 authored by Alan Ott's avatar Alan Ott Committed by Jiri Kosina

HID: hidraw: add compatibility ioctl() for 32-bit applications.

Added the ioctl function to the compat_ioctl pointer in the file_operations
struct. Before this, some ioctls would fail for 32-bit apps on 64-bit systems.
Signed-off-by: default avatarAlan Ott <alan@signal11.us>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 68229689
...@@ -344,6 +344,9 @@ static const struct file_operations hidraw_ops = { ...@@ -344,6 +344,9 @@ static const struct file_operations hidraw_ops = {
.open = hidraw_open, .open = hidraw_open,
.release = hidraw_release, .release = hidraw_release,
.unlocked_ioctl = hidraw_ioctl, .unlocked_ioctl = hidraw_ioctl,
#ifdef CONFIG_COMPAT
.compat_ioctl = hidraw_ioctl,
#endif
.llseek = noop_llseek, .llseek = noop_llseek,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment