[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 <[EMAIL PROTECTED]>
Acked
On Fri, May 27, 2005 at 10:34:22AM -0700, Pete Zaitcev wrote:
> On Fri, 27 May 2005 10:00:08 +0200, Duncan Sands <[EMAIL PROTECTED]> wrote:
>
> > 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. Base
On Fri, 27 May 2005 10:00:08 +0200, Duncan Sands <[EMAIL PROTECTED]> wrote:
> 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 <
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 <[EMAIL PROTECTED]>
--- Linux/drivers/usb/atm/usbatm.c.orig 2005-05-27 09:55:36.2401880