[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)
commit65412e48e21ff4fdaf2aea1565ef4fb3ef5262ce
tree084813b21b98aed0ef97db6160663e5abff0991a
parente20d6645f794b51835e6f740a5b6f95c7e3fd843
[PATCH] USB ATM: avoid oops on bind failure; plug memory leak

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>
drivers/usb/atm/usbatm.c