]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: ti: j721e-csi2rx: Fix NULL vs IS_ERR() bug in ti_csi2rx_request_max_ppc()
authorDan Carpenter <dan.carpenter@linaro.org>
Wed, 27 Aug 2025 13:02:57 +0000 (16:02 +0300)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 9 Sep 2025 13:59:16 +0000 (15:59 +0200)
commit80ae11c1a524015e4d9ef25c04fa3aacdcbe3a39
tree874e3c36fc3e2739cb232a77f1d746581b00f0b7
parenta1dcf9a069f7e2b7571bc0aaa4e8a742c6f78fe8
media: ti: j721e-csi2rx: Fix NULL vs IS_ERR() bug in ti_csi2rx_request_max_ppc()

The media_entity_remote_source_pad_unique() function never returns NULL,
it returns error pointers.  Change this check from a NULL check to an
IS_ERR() check.

Fixes: 31f91c5224cd ("media: ti: j721e-csi2rx: Support multiple pixels per clock")
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jai Luthra <jai.luthra@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/ti/j721e-csi2rx/j721e-csi2rx.c