[lvc-project] [PATCH v2 0/2] media: ipu6: isys: guard remote pad lookups

Mikhail Lobanov m.lobanov at rosa.ru
Thu Dec 18 00:35:21 MSK 2025


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



More information about the lvc-project mailing list