[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CA+V-a8vw+1CF=DJuyDp=To-QNzzynritdDcCvvv3DeL+6KehWA@mail.gmail.com>
Date: Mon, 13 Aug 2018 12:47:50 +0100
From: "Lad, Prabhakar" <prabhakar.csengg@...il.com>
To: Anton Vasilyev <vasilyev@...ras.ru>
Cc: Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-media <linux-media@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>, ldv-project@...uxtesting.org
Subject: Re: [PATCH v2 1/2] media: davinci: vpif_display: Mix memory leak on
probe error path
Hi,
Thanks for the patch.
On Mon, Aug 6, 2018 at 4:50 PM Anton Vasilyev <vasilyev@...ras.ru> wrote:
>
> If vpif_probe() fails on v4l2_device_register() then memory allocated
> at initialize_vpif() for global vpif_obj.dev[i] become unreleased.
>
> The patch adds deallocation of vpif_obj.dev[i] on the probe error path.
>
> Found by Linux Driver Verification project (linuxtesting.org).
>
> Signed-off-by: Anton Vasilyev <vasilyev@...ras.ru>
> ---
> v2: divided the original patch into two and made stylistic fixes based
> on the Prabhakar's rewiev.
> ---
> drivers/media/platform/davinci/vpif_display.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
Acked-by: Lad, Prabhakar <prabhakar.csengg@...il.com>
Cheers,
--Prabhakar Lad
Powered by blists - more mailing lists