]> git.ipfire.org Git - thirdparty/kernel/stable.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>
Thu, 12 Jan 2017 10:39:12 +0000 (11:39 +0100)
commit78ccc1966c9e3dc379a89fb3efb06db35a297680
tree08d10b1863a006c09bd4199d62497596eff38c11
parenta2118d0974095b994a8aa7b32a6a213b961f4f3e
usb: host: xhci: Fix possible wild pointer when handling abort command

commit 2a7cfdf37b7c08ac29df4c62ea5ccb01474b6597 upstream.

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.

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