Re: [PATCH] include/linux/slab.h: new KFREE() macro.

Pekka Enberg
2007-01-01T21:23:23Z

On 1/1/07, Amit Choudhary <amit2030@gmail.com> wrote:
> +#define KFREE(x) \
> + do { \
> + kfree(x); \
> + x = NULL; \
> + } while(0)

NAK until you have actual callers for it. CONFIG_SLAB_DEBUG already
catches use after free and double-free so I don't see the point of
this.