Browse Source

V4L/DVB (3296): Fixes a bug at compat_ioctl32 kernel module

- 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>
Guy Martin 19 years ago
parent
commit
009494effc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/media/video/compat_ioctl32.c

+ 1 - 1
drivers/media/video/compat_ioctl32.c

@@ -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)