diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-08 14:35:23 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-08 14:35:23 +0100 |
commit | 1455fd856dbf6a576a6e896dfd0aa2ee818158f3 (patch) | |
tree | edd1a4a23673229bb09280cb6e9fa03f98b9db2f /linux/drivers/media/video/mx3_camera.c | |
parent | 899781b36c5d5e792a6eaa9e0ad594fab9b9a430 (diff) | |
download | mediapointer-dvb-s2-1455fd856dbf6a576a6e896dfd0aa2ee818158f3.tar.gz mediapointer-dvb-s2-1455fd856dbf6a576a6e896dfd0aa2ee818158f3.tar.bz2 |
v4l2-ioctl: fix partial-copy code.
From: Hans Verkuil <hverkuil@xs4all.nl>
The code to optimize the usercopy only checked the ioctl NR field. However,
this code is also called for non-V4L2 ioctls (either private or ioctls from
linux/dvb/audio.h and linux/dvb/video.h for decoder drivers like ivtv).
If such an ioctl has the same NR as a V4L2 ioctl, then disaster strikes.
Modified the code to check on the full command ID.
Thanks to Martin Dauskardt for tracing the ivtv breakage to this particular
change.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/video/mx3_camera.c')
0 files changed, 0 insertions, 0 deletions