mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-06-11 15:46:40 +02:00
staging: media: atomisp: Disallow all private IOCTLs
Disallow all private IOCTLs. These aren't quite as safe as one could assume of IOCTL handlers; disable them for now. Instead of removing the code, return in the beginning of the function if cmd is non-zero in order to keep static checkers happy. Reported-by: Soufiane Dani <soufianeda@tutanota.com> Closes: https://lore.kernel.org/linux-staging/20260210-atomisp-fix-v1-1-024429cbff31@tutanota.com/ Cc: stable@vger.kernel.org Fixes:a49d25364d("staging/atomisp: Add support for the Intel IPU v2") Fixes:ad85094b29("Revert "media: staging: atomisp: Remove driver"") Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
d6576b85d3
commit
2b7eb2c5dc
@@ -1356,6 +1356,10 @@ static int atomisp_s_parm(struct file *file, void *fh,
|
||||
static long atomisp_vidioc_default(struct file *file, void *fh,
|
||||
bool valid_prio, unsigned int cmd, void *arg)
|
||||
{
|
||||
/* Disable all private IOCTLs for now! */
|
||||
if (cmd)
|
||||
return -EINVAL;
|
||||
|
||||
struct video_device *vdev = video_devdata(file);
|
||||
struct atomisp_sub_device *asd = atomisp_to_video_pipe(vdev)->asd;
|
||||
int err;
|
||||
|
||||
Reference in New Issue
Block a user