]> git.baikalelectronics.ru Git - kernel.git/commit
xhci: check control context is valid before dereferencing it.
authorMathias Nyman <mathias.nyman@linux.intel.com>
Tue, 6 Apr 2021 07:02:06 +0000 (10:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Apr 2021 09:16:55 +0000 (11:16 +0200)
commit90ab3f8bf5bfd0e88d4cb394920b9beff44e1427
tree119be0f1b485d302c7bf866d37f7979508c65a48
parent1c2abb53ba824e66b16fcd369eec17f1d3a341ff
xhci: check control context is valid before dereferencing it.

Don't dereference ctrl_ctx before checking it's valid.
Issue reported by Klockwork

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20210406070208.3406266-3-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci.c