commit | 1c39faec9417fbe23a9a46ab3e2cbb9bb30e92e6 | [log] [tgz] |
---|---|---|
author | Jack Pham <jackp@codeaurora.org> | Thu Jun 01 19:00:45 2017 -0700 |
committer | Jack Pham <jackp@codeaurora.org> | Thu Jun 15 13:05:34 2017 -0700 |
tree | 7739b67437f0d8cced732cffebefdc14ebc561a0 | |
parent | 5ab4ef333c3acec1c707528127828c4f605500b9 [diff] |
usb: xhci: Free leaked command in case xhci_queue_stop_endpoint fails commit e3020f3887db ("xhci-hub: Handle error condition with xhci_stop_device") added error checking to xhci_stop_device() if xhci_queue_stop_endpoint() returns an error. However, the command structure allocated was not getting freed in that case. Fix the leak. Change-Id: Ibc28e32c9e2d402db0c47bfe759dd442d3ab184f Signed-off-by: Jack Pham <jackp@codeaurora.org>