commit | 0097ff8e3ea0a737ee3c528ab7c85c35bef78e28 | [log] [tgz] |
---|---|---|
author | Sakari Ailus <sakari.ailus@linux.intel.com> | Thu Dec 28 09:18:20 2017 -0500 |
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | Wed Jan 03 04:56:38 2018 -0500 |
tree | cafe447a026b2a771239359ecfda793662debabc | |
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 <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>