Skip to content

Commit

Permalink
V4L/DVB (3296): Fixes a bug at compat_ioctl32 kernel module
Browse files Browse the repository at this point in the history
- There is a bug in the ioctl translations from 32bit userspace
to 64bit kernelspace in do_set_window().
- The video window (vw) should be passed to native_ioctl()
instead of the video clip.

Signed-off-by: Guy Martin <gmsoft@tuxicoman.be>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
  • Loading branch information
Guy Martin authored and Mauro Carvalho Chehab committed Jan 9, 2006
1 parent 4aa6ba5 commit 009494e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/compat_ioctl32.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ static int do_set_window(struct file *file, unsigned int cmd, unsigned long arg)
}
}

return native_ioctl(file, VIDIOCSWIN, (unsigned long)p);
return native_ioctl(file, VIDIOCSWIN, (unsigned long)vw);
}

static int do_video_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
Expand Down

0 comments on commit 009494e

Please sign in to comment.