diff options
| author | 2022-09-21 15:34:46 +0300 | |
|---|---|---|
| committer | 2022-09-22 15:52:29 +0200 | |
| commit | d591b32e519603524a35b172156db71df9116902 (patch) | |
| tree | 8d45fcc16ea1de5cb6a34093f272a9f3b9dd2f60 /include/linux/phy/git:/ssh: | |
| parent | usb: host: xhci: Fix potential memory leak in xhci_alloc_stream_info() (diff) | |
| download | linux-dev-d591b32e519603524a35b172156db71df9116902.tar.xz linux-dev-d591b32e519603524a35b172156db71df9116902.zip | |
xhci: dbc: Fix memory leak in xhci_alloc_dbc()
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()")
Cc: stable@vger.kernel.org
Signed-off-by: Rafael Mendonca <rafaelmendsr@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20220921123450.671459-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/phy/git:/ssh:')
0 files changed, 0 insertions, 0 deletions
