summaryrefslogtreecommitdiffstats
path: root/drivers/usb/atm/Makefile
diff options
context:
space:
mode:
authorPrashanth K <quic_prashk@quicinc.com>2023-02-13 18:30:38 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-02-14 14:41:32 +0100
commit5ec63fdbca604568890c577753c6f66c5b3ef0b5 (patch)
tree3d6f4add2c406a79c571ed405b7c1e9c800a16c9 /drivers/usb/atm/Makefile
parentusb: gadget: uvc: fix missing mutex_unlock() if kstrtou8() fails (diff)
downloadlinux-5ec63fdbca604568890c577753c6f66c5b3ef0b5.tar.xz
linux-5ec63fdbca604568890c577753c6f66c5b3ef0b5.zip
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 <stable@kernel.org> Signed-off-by: Prashanth K <quic_prashk@quicinc.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/1676309438-14922-1-git-send-email-quic_prashk@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/atm/Makefile')
0 files changed, 0 insertions, 0 deletions