Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1457739
| From | Johan Hovold <johan@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] USB: serial: fix memleak on error path in usb-serial |
| Date | 2016-08-08 13:50 +0200 |
| Message-ID | <s3Re9-Tb-1@gated-at.bofh.it> (permalink) |
| References | <s3HHP-34Z-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] USB: serial: fix memleak on error path in usb-serial Alexey Klimov <klimov.linux@gmail.com> - 2016-08-08 03:40 +0200 Re: [PATCH] USB: serial: fix memleak on error path in usb-serial Alan Stern <stern@rowland.harvard.edu> - 2016-08-08 03:50 +0200 Re: [PATCH] USB: serial: fix memleak on error path in usb-serial Johan Hovold <johan@kernel.org> - 2016-08-08 13:50 +0200
csiph-web