Home
last modified time | relevance | path

Searched hist:"8 ee92410" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/media/common/videobuf2/
H A Dvideobuf2-core.c8ee92410 Mon Sep 17 03:36:47 CDT 2018 Johan Fjeldtvedt <johfjeld@cisco.com> media: vb2: check for sane values from queue_setup

Warn and return error from the reqbufs ioctl when driver sets 0 number
of planes or 0 as plane sizes, as these values don't make any sense.
Checking this here stops obviously wrong values from propagating
further and causing various problems that are hard to trace back to
either of these values being 0.

Signed-off-by: Johan Fjeldtvedt <johfjeld@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>