media: dvb: fix compat ioctl translation
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Aug 2018 19:56:21 +0000 (15:56 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Nov 2019 08:52:17 +0000 (09:52 +0100)
commit8b7623080aeae27eeab446d0a2857561e644fb51
tree19f726b0e4dff542c5ae978719bc2fbff5ab8652
parent3aa18ec542c913233fdba8b9c23823a0afd06e11
media: dvb: fix compat ioctl translation

[ Upstream commit 1ccbeeb888ac33627d91f1ccf0b84ef3bcadef24 ]

The VIDEO_GET_EVENT and VIDEO_STILLPICTURE was added back in 2005 but
it never worked because the command number is wrong.

Using the right command number means we have a better chance of them
actually doing the right thing, though clearly nobody has ever tried
it successfully.

I noticed these while auditing the remaining users of compat_time_t
for y2038 bugs. This one is fine in that regard, it just never did
anything.

Fixes: 6e87abd0b8cb ("[DVB]: Add compat ioctl handling.")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/compat_ioctl.c