From: Johan Hovold <johan@kernel.org>
To: Alexey Klimov <klimov.linux@gmail.com>
Cc: linux-usb@vger.kernel.org, johan@kernel.org,
stern@rowland.harvard.edu, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB: serial: fix memleak on error path in usb-serial
Date: Mon, 8 Aug 2016 13:48:09 +0200 [thread overview]
Message-ID: <20160808114809.GE10523@localhost> (raw)
In-Reply-To: <1470620086-22677-1-git-send-email-klimov.linux@gmail.com>
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@rowland.harvard.edu>
> Signed-off-by: Alexey Klimov <klimov.linux@gmail.com>
Now applied, thanks.
Johan
prev parent reply other threads:[~2016-08-08 11:48 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-08 1:34 [PATCH] USB: serial: fix memleak on error path in usb-serial Alexey Klimov
2016-08-08 1:41 ` Alan Stern
2016-08-08 11:48 ` Johan Hovold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160808114809.GE10523@localhost \
--to=johan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=klimov.linux@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=stern@rowland.harvard.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.