media: zr364xx: propagate errors from zr364xx_start_readpipe()
authorEvgeny Novikov <novikov@ispras.ru>
Tue, 6 Oct 2020 17:21:22 +0000 (19:21 +0200)
committerSasha Levin <sashal@kernel.org>
Thu, 26 Aug 2021 12:35:33 +0000 (08:35 -0400)
commitb5c7ec6d15af79c910a0b5b9acbf60016d8c344d
treedf75216bfe4779448492cb31c60b68c164b68980
parent779a0f4347a474cf4b503350f3eef682404b6779
media: zr364xx: propagate errors from zr364xx_start_readpipe()

[ Upstream commit af0321a5be3e5647441eb6b79355beaa592df97a ]

zr364xx_start_readpipe() can fail but callers do not care about that.
This can result in various negative consequences. The patch adds missed
error handling.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/zr364xx/zr364xx.c