aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-12-28 09:18:20 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2018-01-03 04:56:38 -0500
commit0097ff8e3ea0a737ee3c528ab7c85c35bef78e28 (patch)
treecafe447a026b2a771239359ecfda793662debabc /tools/perf/scripts/python
parentmedia: videobuf2-core: don't go out of the buffer range (diff)
downloadwireguard-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