[PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Jason_wang <Jason_wang@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux