Skip to content
Snippets Groups Projects
Commit ca2e4016 authored by Hans Verkuil's avatar Hans Verkuil Committed by Frieder Schrempf
Browse files

media: pci: cx23885: check cx23885_vdev_init() return


[ Upstream commit 15126b91 ]

cx23885_vdev_init() can return a NULL pointer, but that pointer
is used in the next line without a check.

Add a NULL pointer check and go to the error unwind if it is NULL.

Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: default avatarSicong Huang <huangsicong@iie.ac.cn>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent a33bc779
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment