From: Jason_wang <jason_w...@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_w...@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

Reply via email to