From: Johan Hovold Date: Wed, 18 Feb 2015 03:34:50 +0000 (+0700) Subject: USB: serial: fix potential use-after-free after failed probe X-Git-Tag: omap-for-v4.1/wl12xx-dt~45^2~2^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07fdfc5e9f1c966be8722e8fa927e5ea140df5ce;p=pandora-kernel.git 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 # v2.6.31 Signed-off-by: Johan Hovold Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed