|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] domain_page: handle NULL within unmap_domain_page() itself
Hi, On 13/05/2020 16:43, Hongyan Xia wrote: From: Hongyan Xia <hongyxia@xxxxxxxxxx> The macro version UNMAP_DOMAIN_PAGE() does both NULL checking and variable clearing. Move NULL checking into the function itself so that the semantics is consistent with other similar constructs like XFREE(). This also eases the use unmap_domain_page() in error handling paths, where we only care about NULL checking but not about variable clearing. Signed-off-by: Hongyan Xia <hongyxia@xxxxxxxxxx> Acked-by: Julien Grall <jgrall@xxxxxxxxxx> Cheers,
-- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |