[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 8 Aug 2016 13:48:09 +0200
From: Johan Hovold <johan@...nel.org>
To: Alexey Klimov <klimov.linux@...il.com>
Cc: linux-usb@...r.kernel.org, johan@...nel.org,
stern@...land.harvard.edu, gregkh@...uxfoundation.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: serial: fix memleak on error path in usb-serial
On Mon, Aug 08, 2016 at 02:34:46AM +0100, Alexey Klimov wrote:
> udriver struct allocated by kzalloc() will not be freed
> if usb_register() and next calls fail. This patch fixes this
> by adding one more step with kfree(udriver) in error path.
>
> Cc: Alan Stern <stern@...land.harvard.edu>
> Signed-off-by: Alexey Klimov <klimov.linux@...il.com>
Now applied, thanks.
Johan
Powered by blists - more mailing lists