On Thu, Jan 10, 2019 at 04:24:26PM +0200, Sakari Ailus wrote:
> The num_planes field in struct v4l2_pix_format_mplane is used in a loop
> before validating it. As the use is printing a debug message in this case,
> just cap the value to the maximum allowed.
> 
> Signed-off-by: Sakari Ailus <[email protected]>
> Cc: [email protected]
> ---
>  drivers/media/v4l2-core/v4l2-ioctl.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Seems reasonable:

Reviewed-by: Thierry Reding <[email protected]>

Attachment: signature.asc
Description: PGP signature

Reply via email to