Skip to content
Snippets Groups Projects
Commit 1f8d45cd authored by Daniil Dulov's avatar Daniil Dulov Committed by Sasha Levin
Browse files

media: go7007: add check of return value of go7007_read_addr()


[ Upstream commit 0b70530e ]

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: 866b8695 ("Staging: add the go7007 video driver")
Signed-off-by: default avatarDaniil Dulov <d.dulov@aladdin.ru>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 5d9fe604
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