From: Duncan Sands Date: Fri, 27 May 2005 08:00:08 +0000 (+0200) Subject: [PATCH] USB ATM: avoid oops on bind failure; plug memory leak X-Git-Tag: v2.6.13-rc1~51^2~8^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65412e48e21ff4fdaf2aea1565ef4fb3ef5262ce;p=pandora-kernel.git [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 Acked-by: Pete Zaitcev Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed