diff options
author | 2017-12-28 09:18:20 -0500 | |
---|---|---|
committer | 2018-01-03 04:56:38 -0500 | |
commit | 0097ff8e3ea0a737ee3c528ab7c85c35bef78e28 (patch) | |
tree | cafe447a026b2a771239359ecfda793662debabc /tools/perf/scripts/python | |
parent | media: videobuf2-core: don't go out of the buffer range (diff) | |
download | wireguard-linux-0097ff8e3ea0a737ee3c528ab7c85c35bef78e28.tar.xz wireguard-linux-0097ff8e3ea0a737ee3c528ab7c85c35bef78e28.zip |
media: vb2: Enforce VB2_MAX_FRAME in vb2_core_reqbufs better
The check for the number of buffers requested against the maximum,
VB2_MAX_FRAME, was performed before checking queue's minimum number of
buffers. Reverse the order, thus ensuring that under no circumstances
num_buffers exceeds VB2_MAX_FRAME here.
Also add a warning of the condition.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions