aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2015-02-18 03:34:50 +0000
committerJohan Hovold <[email protected]>2015-02-26 16:08:36 +0000
commit07fdfc5e9f1c966be8722e8fa927e5ea140df5ce (patch)
tree4728261d05363f71ff04ce4defe2f5a37cb0fa67 /lib/mpi/mpi-bit.c
parentUSB: console: add dummy __module_get (diff)
downloadkernel-07fdfc5e9f1c966be8722e8fa927e5ea140df5ce.tar.gz
kernel-07fdfc5e9f1c966be8722e8fa927e5ea140df5ce.zip
USB: serial: fix potential use-after-free after failed probe
Fix return value in probe error path, which could end up returning success (0) on errors. This could in turn lead to use-after-free or double free (e.g. in port_remove) when the port device is removed. Fixes: c706ebdfc895 ("USB: usb-serial: call port_probe and port_remove at the right times") Cc: stable <[email protected]> # v2.6.31 Signed-off-by: Johan Hovold <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions