[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAAs3648wsmiJw43BAfigLHC_Sr=9Coubk9b=na0dVNTtNwFqXA@mail.gmail.com>
Date: Sat, 5 Dec 2020 20:16:53 +0530
From: Vaibhav Agarwal <vaibhav.sr@...il.com>
To: Wang Hai <wanghai38@...wei.com>
Cc: Johan Hovold <johan@...nel.org>, Alex Elder <elder@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Dan Carpenter <dan.carpenter@...cle.com>, aibhav.sr@...il.com,
"moderated list:GREYBUS SUBSYSTEM" <greybus-dev@...ts.linaro.org>,
devel@...verdev.osuosl.org,
open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] staging: greybus: audio: Fix possible leak free widgets
in gbaudio_dapm_free_controls
On Sat, Dec 5, 2020 at 4:02 PM Wang Hai <wanghai38@...wei.com> wrote:
>
> In gbaudio_dapm_free_controls(), if one of the widgets is not found, an error
> will be returned directly, which will cause the rest to be unable to be freed,
> resulting in leak.
>
> This patch fixes the bug. If if one of them is not found, just skip and free the others.
>
nit, typo error "If if one".
> Fixes: 510e340efe0c ("staging: greybus: audio: Add helper APIs for dynamic audio module")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Wang Hai <wanghai38@...wei.com>
> ---
Reviewed-by: Vaibhav Agarwal <vaibhav.sr@...il.com>
--
thanks,
vaibhav
Powered by blists - more mailing lists