svn commit: r327697 - head/sys/sys

Pedro Giffuni pfg at FreeBSD.org
Mon Jan 8 15:58:22 UTC 2018



On 01/08/18 10:41, Pedro F. Giffuni wrote:
> Author: pfg
> Date: Mon Jan  8 15:41:48 2018
> New Revision: 327697
> URL: https://svnweb.freebsd.org/changeset/base/327697
>
> Log:
>    malloc(9): drop the __result_use_check attribute for the kernel allocator.
>    
>    The __result_use_check attribute was brought to the kernel malloc in
>    r281203 for consistency with the userland malloc.
>    
>    For the case of the M_WAITOK flag, the kernel malloc(), realloc(), and
>    reallocf() cannot return NULL so in that case the __result_use_check
>    attribute makes no sense.
Bah ...

I misinterpreted the attribute (hate it when that happens) reverted in 
r327697, sorry for the code churn.

Pedro.



More information about the svn-src-head mailing list