Re: [PATCH 1/3] USB: serial: fix potential use-after-free after failed probe

2015-02-17 Thread Greg KH
On Wed, Feb 18, 2015 at 10:34:50AM +0700, Johan Hovold wrote: > 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 ("US

[PATCH 1/3] USB: serial: fix potential use-after-free after failed probe

2015-02-17 Thread Johan Hovold
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: