[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <07f71b65-b900-62e2-6550-ae89708c9294@linux.intel.com>
Date: Wed, 14 Sep 2022 15:27:07 +0300
From: Mathias Nyman <mathias.nyman@...ux.intel.com>
To: Rafael Mendonca <rafaelmendsr@...il.com>,
Mathias Nyman <mathias.nyman@...el.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] xhci: dbc: Fix memory leak in xhci_alloc_dbc()
On 14.9.2022 5.36, Rafael Mendonca wrote:
> If DbC is already in use, then the allocated memory for the xhci_dbc struct
> doesn't get freed before returning NULL, which leads to a memleak.
>
> Fixes: 534675942e90 ("xhci: dbc: refactor xhci_dbc_init()")
> Signed-off-by: Rafael Mendonca <rafaelmendsr@...il.com>
Thanks, nice catch
Adding to queue
-Mathias
Powered by blists - more mailing lists