Skip to content
Snippets Groups Projects
Commit bfd5df3c authored by Chris Lund's avatar Chris Lund Committed by Greg Kroah-Hartman
Browse files

[PATCH] USB: free allocated memory on io_edgeport startup memory failure


While an Edgeport is allocating individual port structures, if kmalloc
returns NULL, the serial structure is freed and -ENOMEM, but the ports
allocated before the failure are not freed.  This patch addresses that
condition.

Signed-off-by: default avatarChristopher Lund <docmax@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 14f76cc7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment