[PATCH] USB ATM: avoid oops on bind failure; plug memory leak
authorDuncan Sands <duncan.sands@math.u-psud.fr>
Fri, 27 May 2005 08:00:08 +0000 (10:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 27 Jun 2005 21:43:58 +0000 (14:43 -0700)
Zero the entire instance, not just the struct usbatm_data head.
Make sure the just allocated urb is freed if we fail to allocate
a buffer.  Based on a patch by Stanislaw W. Gruszka.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Acked-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found