Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4e2660eb authored by Hans Verkuil's avatar Hans Verkuil Committed by Vegard Nossum
Browse files

media: pci: cx23885: check cx23885_vdev_init() return



[ Upstream commit 15126b916e39b0cb67026b0af3c014bfeb1f76b3 ]

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>
(cherry picked from commit 8e31b096e2e1949bc8f0be019c9ae70d414404c6)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent df321d5b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment