Commit f6caea4
xhci: Free the command allocated for setting LPM if we return early
The command allocated to set exit latency LPM values need to be freed in
case the command is never queued. This would be the case if there is no
change in exit latency values, or device is missing.
Reported-by: Mirsad Goran Todorovac <[email protected]>
Link: https://lore.kernel.org/linux-usb/[email protected]
Tested-by: Mirsad Goran Todorovac <[email protected]>
Fixes: 5c2a380 ("xhci: Allocate separate command structures for each LPM command")
Cc: <[email protected]>
Signed-off-by: Mathias Nyman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 8e77d3d commit f6caea4
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4442 | 4442 | | |
4443 | 4443 | | |
4444 | 4444 | | |
| 4445 | + | |
4445 | 4446 | | |
4446 | 4447 | | |
4447 | 4448 | | |
| |||
0 commit comments