diff options
| author | Sakari Ailus <[email protected]> | 2017-12-28 09:18:20 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-01-03 04:56:38 -0500 |
| commit | 0097ff8e3ea0a737ee3c528ab7c85c35bef78e28 (patch) | |
| tree | cafe447a026b2a771239359ecfda793662debabc /tools/perf/scripts/python/intel-pt-events.py | |
| parent | df93dc61b0d8b19a5c9db545cf3fcc24f88dfde4 (diff) | |
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 <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions