Re: [PATCH] module: avoid call vmalloc if init size is zero

From: Dmitry Antipov
Date: Mon Jan 30 2012 - 02:27:10 EST


On 01/27/2012 03:21 PM, Rusty Russell wrote:

Please fix __vmalloc_node_range() instead to return ZERO_SIZE_PTR.
And of course, vfree() to use ZERO_OR_NULL_PTR().

For the convenience and uniformity, should {alloc,free}_percpu() be
also modified in that way?

Dmitry
--
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/