Re: [PATCH] xhci: dbc: Fix memory leak in xhci_alloc_dbc()

From: Mathias Nyman
Date: Wed Sep 14 2022 - 08:25:55 EST


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@xxxxxxxxx>

Thanks, nice catch

Adding to queue

-Mathias