Re: SLUB: Return ZERO_SIZE_PTR for kmalloc(0)

From: Matt Mackall
Date: Sun Jun 03 2007 - 12:17:42 EST


On Fri, Jun 01, 2007 at 09:54:27PM -0700, Andrew Morton wrote:
> We lose leak-detection and double-free detection this way, too. Not a big
> deal.

We could keep a global counter and warn if count < 0 or > N.

An awful lot of fuss over nothing though.

--
Mathematics is the supreme nostalgia of our time.
-
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/