On Thu, 23 Oct 2008, Andy Whitcroft wrote:

> gethugepagesizes has two modes: a counting mode which tells us exactly
> how many entries we would need; and a lookup mode which fills in a
> supplied buffer.
> 
> The counting mode is defined as triggering when we pass in both a zero
> element count and a NULL buffer pointer.  Currently we enter this mode when
> the element count is zero which causes it to trigger at the edge case where
> the caller (pointlessly) passes in a buffer with an element count of zero.
> Fix behaviour to match the documentation.
> 
> Signed-off-by: Andy Whitcroft <[EMAIL PROTECTED]>
Acked-by: Eric B Munson <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to