Re: [PATCH] [media] media: am437x-vpfe: ensure ret is initialized

From: Lad, Prabhakar
Date: Tue Mar 22 2016 - 07:26:39 EST


Hi Colin,

On Mon, Mar 21, 2016 at 11:32 PM, Colin King <colin.king@xxxxxxxxxxxxx> wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> ret should be initialized to 0; for example if pfe->fmt.fmt.pix.field
> is V4L2_FIELD_NONE then ret will contain garbage from the
> uninitialized state causing garbage to be returned if it is non-zero.
>
Thanks for the patch, patch [1] fixing this issue is already posted in ML.

[1] http://www.mail-archive.com/linux-media@xxxxxxxxxxxxxxx/msg95562.html

Cheers,
--Prabhakar Lad