]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: media: atomisp: Disallow all private IOCTLs
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 26 Feb 2026 13:10:54 +0000 (15:10 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:37 +0000 (01:05 +0100)
commit2b7eb2c5dc72f0fc954ac4aa155f9e285e937f7c
treec9e7ff82e8ba597ae984139a3fcdeda431c42182
parentd6576b85d3fe75238e67d3e311222e7f69730b09
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: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2")
Fixes: ad85094b293e ("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>
drivers/staging/media/atomisp/pci/atomisp_ioctl.c