Re: [PATCH] net/netlabel/netlabel_kapi.c: add missing cleanup code

From: Dan Carpenter
Date: Thu Aug 11 2011 - 05:46:22 EST

On Thu, Aug 11, 2011 at 11:40:33AM +0200, Julia Lawall wrote:
> From: Julia Lawall <julia@xxxxxxx>
> Use the same cleanup code for the failure of kzalloc as for the failure of
> kstrdup just below.

That doesn't work. The kfree(entry->domain) would cause an oops.

dan carpenter

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at