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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 ("USB: usb-serial: call port_probe and port_remove
> at the right times")
> Cc: stable <stable@xxxxxxxxxxxxxxx>	# v2.6.31
> 
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
>  drivers/usb/serial/bus.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Nice job with all of these:

Acked-by: Greg Kroah-Hartman <greg@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux