Re: [PATCH] ibmtr_cs/ibmtr on 2.6.0-test9 - get working again

From: Andrew Morton
Date: Sat Oct 25 2003 - 17:57:12 EST


Mike Phillips <phillim2@xxxxxxxxxxx> wrote:
>
> - dev = alloc_trdev(sizeof(*info));
> + info = kmalloc(sizeof(*info), GFP_KERNEL);
> + if (!info) return NULL;
> + memset(info,0,sizeof(*info));
> + dev = alloc_trdev(sizeof(struct tok_info));
> if (!dev)
> return NULL;

This return leaks the memory at `info'.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/