mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: libpayload: xhci: plug leak
Change-Id: Ia163872846906c6c78144a984a405812f856f626 Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Original-Found-by: Coverity Scan #1325835 Original-Reviewed-on: https://review.coreboot.org/18035 Original-Tested-by: build bot (Jenkins) Original-Reviewed-by: Martin Roth <martinroth@google.com> Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/425985 Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
parent
b4e7e4c8eb
commit
508c02c15a
1 changed files with 1 additions and 0 deletions
|
@ -451,6 +451,7 @@ xhci_destroy_dev(hci_t *const controller, const int slot_id)
|
|||
*ic->drop = (1 << num_eps) - 1; /* Drop all endpoints we can. */
|
||||
*ic->drop &= ~(1 << 1 | 1 << 0); /* Not allowed to drop EP0 or Slot. */
|
||||
int cc = xhci_cmd_evaluate_context(xhci, slot_id, ic);
|
||||
free(ic);
|
||||
if (cc != CC_SUCCESS)
|
||||
xhci_debug("Failed to quiesce slot %d: %d\n", slot_id, cc);
|
||||
cc = xhci_cmd_stop_endpoint(xhci, slot_id, 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue