From: Hans Verkuil Date: Sun, 8 Mar 2009 13:35:23 +0000 (-0300) Subject: V4L/DVB (10920): v4l2-ioctl: fix partial-copy code. X-Git-Tag: v2.6.30-rc1~621^2~274 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f1a693f76700018d921cd7af86f7c994a300613;p=pandora-kernel.git V4L/DVB (10920): v4l2-ioctl: fix partial-copy code. 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. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed