xhci: check slot_id is valid before gathering slot info
authorLalithambika Krishna Kumar <lalithambika.krishnakumar@intel.com>
Fri, 29 Jan 2021 13:00:27 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jan 2021 13:16:50 +0000 (14:16 +0100)
commit296fcdab3321de0aca7a033e4469f4a2dd55fe96
tree71bf6a6995731ed754b55c4be1c4d81f337d5d55
parent04d21f7219acec66751f5512aa8a69f528c5b36a
xhci: check slot_id is valid before gathering slot info

Check that the slot_id that we dug out from command completion event
TRB, is valid before using it to identify the slot associated with the
command that generated the event.

Signed-off-by: Lalithambika Krishna Kumar <lalithambika.krishnakumar@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210129130044.206855-11-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-ring.c