aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorWen Yang <[email protected]>2019-11-24 22:22:36 +0800
committerGreg Kroah-Hartman <[email protected]>2019-12-10 11:41:18 +0100
commit1848a543191ae32e558bb0a5974ae7c38ebd86fc (patch)
treee8d43e883413d305e746a39a192cc247b6214f3b /net/unix/af_unix.c
parente42617b825f8073569da76dc4510bfa019b1c35a (diff)
usb: roles: fix a potential use after free
Free the sw structure only after we are done using it. This patch just moves the put_device() down a bit to avoid the use after free. Fixes: 5c54fcac9a9d ("usb: roles: Take care of driver module reference counting") Signed-off-by: Wen Yang <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Reviewed-by: Peter Chen <[email protected]> Cc: stable <[email protected]> Cc: Hans de Goede <[email protected]> Cc: Chunfeng Yun <[email protected]> Cc: Suzuki K Poulose <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions