]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - fs/compat_ioctl.c
media: dvb: fix compat ioctl translation
authorArnd Bergmann <arnd@arndb.de>
Mon, 27 Aug 2018 19:56:21 +0000 (15:56 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 26 Nov 2019 12:16:36 +0000 (13:16 +0100)
commit0b0c012128b0f55c7e0718676b1710752b76caf1
treea4da1646eab966e012ccc252a73d8bddb1505876
parent9068dfe7c87f3129527c622fce4b20feadff5881
media: dvb: fix compat ioctl translation

BugLink: https://bugs.launchpad.net/bugs/1853915
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
fs/compat_ioctl.c