diff options
author | Marek Vasut <[email protected]> | 2023-12-01 16:06:04 +0100 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2024-02-05 14:29:34 +0100 |
commit | eb2f932100288dbb881eadfed02e1459c6b9504c (patch) | |
tree | f9e92fbdbb1c5b9ae2ffb7ebf35ec985175b96a4 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 422f7af75d03d50895938d38bc9cb8be759c440f (diff) |
media: nxp: imx8-isi: Check whether crossbar pad is non-NULL before access
When translating source to sink streams in the crossbar subdev, the
driver tries to locate the remote subdev connected to the sink pad. The
remote pad may be NULL, if userspace tries to enable a stream that ends
at an unconnected crossbar sink. When that occurs, the driver
dereferences the NULL pad, leading to a crash.
Prevent the crash by checking if the pad is NULL before using it, and
return an error if it is.
Cc: [email protected] # 6.1
Fixes: cf21f328fcaf ("media: nxp: Add i.MX8 ISI driver")
Signed-off-by: Marek Vasut <[email protected]>
Reviewed-by: Kieran Bingham <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Laurent Pinchart <[email protected]>
Acked-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions