Skip to content

Commit ed221d6

Browse files
GeHao01994Hans Verkuil
authored andcommitted
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: 3c1dfb5 ("media: intel/ipu6: input system video nodes and buffer queues") Signed-off-by: Hao Ge <gehao@kylinos.cn> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
1 parent 62028aa commit ed221d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/media/pci/intel/ipu6/ipu6-isys-video.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ ipu6_isys_query_stream_by_source(struct ipu6_isys *isys, int source, u8 vc)
943943
return NULL;
944944

945945
if (source < 0) {
946-
dev_err(&stream->isys->adev->auxdev.dev,
946+
dev_err(&isys->adev->auxdev.dev,
947947
"query stream with invalid port number\n");
948948
return NULL;
949949
}

0 commit comments

Comments
 (0)