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.

regards,
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 http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/