[PATCH 1/2] vmalloc: use ZERO_SIZE_PTR / ZERO_OR_NULL_PTR
Dan Carpenter
dan.carpenter at oracle.com
Tue Feb 28 09:44:15 UTC 2012
On Tue, Feb 28, 2012 at 01:33:59PM +0400, Dmitry Antipov wrote:
> - Fix vmap() to return ZERO_SIZE_PTR if 0 pages are requested;
> - fix __vmalloc_node_range() to return ZERO_SIZE_PTR if 0 bytes
> are requested;
> - fix __vunmap() to check passed pointer with ZERO_OR_NULL_PTR.
>
Why?
Also patch 2/2 should go in before patch 1/2 or it breaks things.
regards,
dan carpenter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.linaro.org/pipermail/linaro-dev/attachments/20120228/97f5f4fd/attachment-0001.pgp>
More information about the linaro-dev
mailing list