[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251217213526.196533-1-m.lobanov@rosa.ru>
Date: Thu, 18 Dec 2025 00:35:21 +0300
From: Mikhail Lobanov <m.lobanov@...a.ru>
To: Sakari Ailus <sakari.ailus@...ux.intel.com>
Cc: Mikhail Lobanov <m.lobanov@...a.ru>,
Bingbu Cao <bingbu.cao@...el.com>,
Tianshu Qiu <tian.shu.qiu@...el.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org,
lvc-project@...uxtesting.org
Subject: [PATCH v2 0/2] media: ipu6: isys: guard remote pad lookups
Hi,
This series fixes NULL pointer dereferences in the IPU6 ISYS driver when
media_pad_remote_pad_first() returns NULL (no enabled remote link).
Patch 1/2 guards remote pad lookups in CSI-2 stream enable/disable
callbacks. The external subdev -> CSI-2 sink link is created only after a
successful async bind, while CSI-2 subdevs are registered independently
and expose devnodes/STREAMS callbacks, so the stream ops can be reached
even when a given port has no enabled upstream link. The enable path
returns -ENOTCONN when the remote pad is missing. The disable path always
stops the local CSI-2 receiver and returns success when the remote link is
missing to keep teardown best-effort and consistent with the existing
behaviour (remote disable errors are not propagated today).
Patch 2/2 adds similar guards in the video node streaming helpers and the
firmware pin configuration helper, returning -ENOTCONN instead of
dereferencing a NULL remote pad.
Changes in v2:
Add detailed rationale to commit messages.
Thanks,
Mikhail Lobanov
Powered by blists - more mailing lists