mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
media: media-request: Add compat ioctl
Currently media request ioctl operations fail on 64-bit kernel with 32-bit userspace due to missing .compat_ioctl callback. Because no ioctl command uses any argument, just reuse existing ioctl handler for compat_ioctl too. Signed-off-by: Jernej Skrabec <jernej.skrabec@siol.net> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
4212368750
commit
f44e361e37
1 changed files with 3 additions and 0 deletions
|
@ -238,6 +238,9 @@ static const struct file_operations request_fops = {
|
||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.poll = media_request_poll,
|
.poll = media_request_poll,
|
||||||
.unlocked_ioctl = media_request_ioctl,
|
.unlocked_ioctl = media_request_ioctl,
|
||||||
|
#ifdef CONFIG_COMPAT
|
||||||
|
.compat_ioctl = media_request_ioctl,
|
||||||
|
#endif /* CONFIG_COMPAT */
|
||||||
.release = media_request_close,
|
.release = media_request_close,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue