]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: intel/ipu6: fix error pointer dereference
authorEthan Tidmore <ethantidmore06@gmail.com>
Sat, 7 Mar 2026 03:03:55 +0000 (21:03 -0600)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 11 Mar 2026 00:05:35 +0000 (01:05 +0100)
commit8dd088b8b106f7b119664f965b691785998edcfb
tree542374002074d7fc7ddea410e7f5dea0e57b2324
parentb7ef8bbb9fbd43d33ecb92e23aa7c5a55dab5513
media: intel/ipu6: fix error pointer dereference

In a error path isp->psys is confirmed to be an error pointer not NULL so
this condition is true and the error pointer is dereferenced. So isp-psys
should be set to NULL before going to out_ipu6_bus_del_devices.

Detected by Smatch:
drivers/media/pci/intel/ipu6/ipu6.c:690 ipu6_pci_probe() error:
'isp->psys' dereferencing possible ERR_PTR()

Fixes: 25fedc021985a ("media: intel/ipu6: add Intel IPU6 PCI device driver")
Cc: stable@vger.kernel.org
Signed-off-by: Ethan Tidmore <ethantidmore06@gmail.com>
[Sakari Ailus: Fix commit message.]
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/intel/ipu6/ipu6.c