mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: jason_wang <jason_wang@realsil.com.cn>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-media@vger.kernel.org" <linux-media@vger.kernel.org>
Cc: "jason.root.w@gamil.com" <jason.root.w@gamil.com>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Subject: [PATCH] media:dvb-core: add .compat_ioctl define for dmx-dvr
Date: Tue, 12 Jan 2021 06:45:42 +0000	[thread overview]
Message-ID: <231fa4ad3ee5423fa6c0a0a98f68c053@realsil.com.cn> (raw)

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


             reply	other threads:[~2021-01-12  6:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-12  6:45 jason_wang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-12  6:27 王杰清[jason_wang]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=231fa4ad3ee5423fa6c0a0a98f68c053@realsil.com.cn \
    --to=jason_wang@realsil.com.cn \
    --cc=jason.root.w@gamil.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®