aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers/bug.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2024-10-31 09:48:30 +0000
committerJohan Hovold <[email protected]>2024-10-31 13:18:51 +0000
commit37bb5628379295c1254c113a407cab03a0f4d0b4 (patch)
treeee3e41700e389885f6fce4e699bfd21b3b15bfdb /rust/helpers/bug.c
parentUSB: serial: option: add Quectel RG650V (diff)
downloadkernel-37bb5628379295c1254c113a407cab03a0f4d0b4.tar.gz
kernel-37bb5628379295c1254c113a407cab03a0f4d0b4.zip
USB: serial: io_edgeport: fix use after free in debug printk
The "dev_dbg(&urb->dev->dev, ..." which happens after usb_free_urb(urb) is a use after free of the "urb" pointer. Store the "dev" pointer at the start of the function to avoid this issue. Fixes: 984f68683298 ("USB: serial: io_edgeport.c: remove dbg() usage") Cc: [email protected] Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'rust/helpers/bug.c')
0 files changed, 0 insertions, 0 deletions