* [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr
@ 2021-01-12 6:45 jason_wang
0 siblings, 0 replies; 2+ messages in thread
From: jason_wang @ 2021-01-12 6:45 UTC (permalink / raw)
To: linux-kernel, linux-media; +Cc: jason.root.w, Mauro Carvalho Chehab
From: Jason_wang <Jason_wang@realsil.com.cn>
if CONFIG_COMPAT is enabled. dvr ioctl can not be invoked by user.
need .compat_ioctl to identify the ioctl function.
Signed-off-by: jason_wang <jason_wang@realsil.com.cn>
---
drivers/media/dvb-core/dmxdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c index f14a872d1268..4a9e027de827 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1393,6 +1393,7 @@ static const struct file_operations dvb_dvr_fops = {
.read = dvb_dvr_read,
.write = dvb_dvr_write,
.unlocked_ioctl = dvb_dvr_ioctl,
+ .compat_ioctl = dvb_dvr_ioctl,
.open = dvb_dvr_open,
.release = dvb_dvr_release,
.poll = dvb_dvr_poll,
--
2.25.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr
@ 2021-01-12 6:27 王杰清[jason_wang]
0 siblings, 0 replies; 2+ messages in thread
From: 王杰清[jason_wang] @ 2021-01-12 6:27 UTC (permalink / raw)
To: linux-media, linux-kernel; +Cc: Mauro Carvalho Chehab, jason.root.w
From: Jason_wang <Jason_wang@realsil.com.cn>
if CONFIG_COMPAT is enabled. dvr ioctl can not be
invoked by user. need .compat_ioctl to identify the
ioctl function.
Signed-off-by: jason_wang <mailto:jason_wang@realsil.com.cn>
---
drivers/media/dvb-core/dmxdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c
index f14a872d1268..4a9e027de827 100644
--- a/drivers/media/dvb-core/dmxdev.c
+++ b/drivers/media/dvb-core/dmxdev.c
@@ -1393,6 +1393,7 @@ static const struct file_operations dvb_dvr_fops = {
.read = dvb_dvr_read,
.write = dvb_dvr_write,
.unlocked_ioctl = dvb_dvr_ioctl,
+ .compat_ioctl = dvb_dvr_ioctl,
.open = dvb_dvr_open,
.release = dvb_dvr_release,
.poll = dvb_dvr_poll,
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-12 6:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 6:45 [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr jason_wang
-- strict thread matches above, loose matches on Subject: below --
2021-01-12 6:27 王杰清[jason_wang]
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).