]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: host: xhci: Fix possible wild pointer when handling abort command
authorBaolin Wang <baolin.wang@linaro.org>
Tue, 3 Jan 2017 16:28:47 +0000 (18:28 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 16:37:32 +0000 (17:37 +0100)
commit2a7cfdf37b7c08ac29df4c62ea5ccb01474b6597
treeb12c8a58d6a894f1fb8f2560c13abb26b1826489
parent2b985467371a58ae44d76c7ba12b0951fee6ed98
usb: host: xhci: Fix possible wild pointer when handling abort command

When current command was supposed to be aborted, host will free the command
in handle_cmd_completion() function. But it might be still referenced by
xhci->current_cmd, which need to set NULL.

Cc: <stable@vger.kernel.org>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c