aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorPrashanth K <[email protected]>2023-02-13 23:00:38 +0530
committerGreg Kroah-Hartman <[email protected]>2023-02-14 14:41:32 +0100
commit5ec63fdbca604568890c577753c6f66c5b3ef0b5 (patch)
tree3d6f4add2c406a79c571ed405b7c1e9c800a16c9 /scripts/gdb/linux/vmalloc.py
parent7ebb605d2283fb2647b4fa82030307ce00bee436 (diff)
usb: gadget: u_serial: Add null pointer check in gserial_resume
Consider a case where gserial_disconnect has already cleared gser->ioport. And if a wakeup interrupt triggers afterwards, gserial_resume gets called, which will lead to accessing of gser->ioport and thus causing null pointer dereference.Add a null pointer check to prevent this. Added a static spinlock to prevent gser->ioport from becoming null after the newly added check. Fixes: aba3a8d01d62 ("usb: gadget: u_serial: add suspend resume callbacks") Cc: stable <[email protected]> Signed-off-by: Prashanth K <[email protected]> Acked-by: Alan Stern <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions