From: Mauro Carvalho Chehab Date: Sun, 31 Jul 2011 12:37:56 +0000 (-0300) Subject: v4l2-ioctl: properly return -EINVAL when parameters are wrong X-Git-Tag: v3.2-rc1~112^2~338 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5f2db539bd2a977cdee3fecc5c15dd0941c1ab3;p=pandora-kernel.git v4l2-ioctl: properly return -EINVAL when parameters are wrong Whan an ioctl is implemented, but the parameters are invalid, the error code should be -EINVAL. However, if the ioctl is not defined, it should return -ENOTTY instead. Reported-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed