summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb
diff options
context:
space:
mode:
authorAndré Almeida <andrealmeid@collabora.com>2019-06-17 12:28:02 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-07-26 09:10:33 +0200
commitadb1d60e704dc95b57a5e26ee51a8f73ae963122 (patch)
tree4da1f74474666253f759dd663b8e2ae03786283d /drivers/media/usb
parent9a9ff8f128445688f43b9afc1b837a3de4548586 (diff)
downloadlinux-stable-adb1d60e704dc95b57a5e26ee51a8f73ae963122.tar.gz
linux-stable-adb1d60e704dc95b57a5e26ee51a8f73ae963122.tar.bz2
linux-stable-adb1d60e704dc95b57a5e26ee51a8f73ae963122.zip
media: vimc: cap: check v4l2_fill_pixfmt return value
[ Upstream commit 77ae46e11df5c96bb4582633851f838f5d954df4 ] v4l2_fill_pixfmt() returns -EINVAL if the pixelformat used as parameter is invalid or if the user is trying to use a multiplanar format with the singleplanar API. Currently, the vimc_cap_try_fmt_vid_cap() returns such value, but vimc_cap_s_fmt_vid_cap() is ignoring it. Fix that and returns an error value if vimc_cap_try_fmt_vid_cap() has failed. Signed-off-by: André Almeida <andrealmeid@collabora.com> Suggested-by: Helen Koike <helen.koike@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/media/usb')
0 files changed, 0 insertions, 0 deletions