]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: go7007: add check of return value of go7007_read_addr()
authorDaniil Dulov <d.dulov@aladdin.ru>
Sun, 11 Feb 2024 15:07:05 +0000 (07:07 -0800)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:19:49 +0000 (18:19 -0400)
commit79159e7c485e16c2cccb740c3a8c01026e1710fa
tree071548133a59b9edf09152aee3422192c6656f5c
parentd164ddc21e986dd9ad614b4b01746e5457aeb24f
media: go7007: add check of return value of go7007_read_addr()

[ Upstream commit 0b70530ee740861f4776ff724fcc25023df1799a ]

If go7007_read_addr() returns error channel is not assigned a value.
In this case go to allocfail.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 866b8695d67e ("Staging: add the go7007 video driver")
Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/go7007/go7007-usb.c