diff options
| author | Hao Ge <[email protected]> | 2024-06-07 08:25:42 +0000 |
|---|---|---|
| committer | Hans Verkuil <[email protected]> | 2024-06-15 09:51:23 +0000 |
| commit | ed221d668115ff8381761f9f0a2bc8d56a975fdd (patch) | |
| tree | 4d3a1c4486f1256c0b4bfb0d4a3bcf0bed409a8f | |
| parent | media: ipu6: Use the ISYS auxdev device as the V4L2 device's device (diff) | |
| download | kernel-ed221d668115ff8381761f9f0a2bc8d56a975fdd.tar.gz kernel-ed221d668115ff8381761f9f0a2bc8d56a975fdd.zip | |
media: intel/ipu6: Fix a null pointer dereference in ipu6_isys_query_stream_by_source
stream is NULL when source is less than 0 in
ipu6_isys_query_stream_by_source. It's a null pointer dereference.
Actually, this should be isys->adev->auxdev.dev.
Fixes: 3c1dfb5a69cf ("media: intel/ipu6: input system video nodes and buffer queues")
Signed-off-by: Hao Ge <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
| -rw-r--r-- | drivers/media/pci/intel/ipu6/ipu6-isys-video.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/pci/intel/ipu6/ipu6-isys-video.c b/drivers/media/pci/intel/ipu6/ipu6-isys-video.c index c8a33e1e910c..06090cc0a476 100644 --- a/drivers/media/pci/intel/ipu6/ipu6-isys-video.c +++ b/drivers/media/pci/intel/ipu6/ipu6-isys-video.c @@ -943,7 +943,7 @@ ipu6_isys_query_stream_by_source(struct ipu6_isys *isys, int source, u8 vc) return NULL; if (source < 0) { - dev_err(&stream->isys->adev->auxdev.dev, + dev_err(&isys->adev->auxdev.dev, "query stream with invalid port number\n"); return NULL; } |
