]> asedeno.scripts.mit.edu Git - linux.git/commit
usbip: vhci_hcd: check rhport before using in vhci_hub_control()
authorShuah Khan <shuahkh@osg.samsung.com>
Thu, 5 Apr 2018 22:31:49 +0000 (16:31 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2018 12:45:11 +0000 (14:45 +0200)
commit5b22f676118ff25049382041da0db8012e57c9e8
tree7d5843e43ca3cbe50c73621feae6dab03938875c
parent83a62c51ba7b3c0bf45150c4eac7aefc6c785e94
usbip: vhci_hcd: check rhport before using in vhci_hub_control()

Validate !rhport < 0 before using it to access port_status array.

Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_hcd.c