mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
media: chips-media: wave5: Add WARN_ON to check if dec_output_info is NULL
The dec_output_info should not be a null pointer, WARN_ON around it to indicates a driver issue. Signed-off-by: Jackson Lee <jackson.lee@chipsnmedia.com> Signed-off-by: Nas Chung <nas.chung@chipsnmedia.com> Tested-by: Brandon Brnich <b-brnich@ti.com> Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
e66ff2b08e
commit
a07ce1e22d
|
|
@ -485,7 +485,7 @@ int wave5_vpu_dec_get_output_info(struct vpu_instance *inst, struct dec_output_i
|
|||
struct vpu_device *vpu_dev = inst->dev;
|
||||
struct dec_output_info *disp_info;
|
||||
|
||||
if (!info)
|
||||
if (WARN_ON(!info))
|
||||
return -EINVAL;
|
||||
|
||||
p_dec_info = &inst->codec_info->dec_info;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user