]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] USB: free allocated memory on io_edgeport startup memory failure
authorChris Lund <docmax@gmail.com>
Sat, 3 Jun 2006 20:58:19 +0000 (13:58 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Jun 2006 22:04:16 +0000 (15:04 -0700)
commit337132da2462ec44dafd4a7ca1a1bfd46d43c8b1
tree3b7835253e0b1f03bc42e323fe3988ee407c0e11
parent8df9cee73bc794da502f9d71db4d0bcb11c7dc30
[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: Christopher Lund <docmax@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/io_edgeport.c