]> git.karo-electronics.de Git - karo-tx-linux.git/commit
v4l1: fix 32-bit compat microcode loading translation
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 15 Oct 2010 18:12:38 +0000 (11:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 29 Oct 2010 04:51:18 +0000 (21:51 -0700)
commitd7d8fdce55b63cb3a6782f02ce9ec628592d7c4c
treed51ea0211bccb605c836d7d6b777885c09d366b2
parent6cd8e5800457113db9a4f1ee6baf9ef654d48b1d
v4l1: fix 32-bit compat microcode loading translation

commit 3e645d6b485446c54c6745c5e2cf5c528fe4deec upstream.

The compat code for the VIDIOCSMICROCODE ioctl is totally buggered.
It's only used by the VIDEO_STRADIS driver, and that one is scheduled to
staging and eventually removed unless somebody steps up to maintain it
(at which point it should use request_firmware() rather than some magic
ioctl).  So we'll get rid of it eventually.

But in the meantime, the compatibility ioctl code is broken, and this
tries to get it to at least limp along (even if Mauro suggested just
deleting it entirely, which may be the right thing to do - I don't think
the compatibility translation code has ever worked unless you were very
lucky).

Reported-by: Kees Cook <kees.cook@canonical.com>
Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/v4l2-compat-ioctl32.c