diff options
author | 2024-01-25 17:27:34 +0200 | |
---|---|---|
committer | 2024-01-27 16:28:35 -0800 | |
commit | a54a594d72f25b08f39d743880a76721fba9ae77 (patch) | |
tree | 6b7c64c97f8aa79f6a2753e374145a4ff22926ca /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | usb: gadget: ncm: Fix endianness of wMaxSegmentSize variable in ecm_desc (diff) | |
download | wireguard-linux-a54a594d72f25b08f39d743880a76721fba9ae77.tar.xz wireguard-linux-a54a594d72f25b08f39d743880a76721fba9ae77.zip |
xhci: fix possible null pointer dereference at secondary interrupter removal
Don't try to remove a secondary interrupter that is known to be invalid.
Also check if the interrupter is valid inside the spinlock that protects
the array of interrupters.
Found by smatch static checker
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/linux-usb/ffaa0a1b-5984-4a1f-bfd3-9184630a97b9@moroto.mountain/
Fixes: c99b38c41234 ("xhci: add support to allocate several interrupters")
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20240125152737.2983959-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions