lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Fri, 27 Feb 2009 01:50:48 +0100
From:	Hannes Eder <hannes@...neseder.net>
To:	Ingo Molnar <mingo@...e.hu>, trivial@...nel.org
Cc:	kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 02/16] x86, numa_32.c: fix sparse warning: Using plain 
	integer as NULL pointer

Added To: Ingo Molnar <mingo@...e.hu>

On Sun, Feb 22, 2009 at 1:01 AM, Hannes Eder <hannes@...neseder.net> wrote:
> Fix this sparse warning:
>  arch/x86/mm/numa_32.c:197:24: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Hannes Eder <hannes@...neseder.net>
> ---
>  arch/x86/mm/numa_32.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/x86/mm/numa_32.c b/arch/x86/mm/numa_32.c
> index d1f7439..3957cd6 100644
> --- a/arch/x86/mm/numa_32.c
> +++ b/arch/x86/mm/numa_32.c
> @@ -194,7 +194,7 @@ void *alloc_remap(int nid, unsigned long size)
>        size = ALIGN(size, L1_CACHE_BYTES);
>
>        if (!allocation || (allocation + size) >= node_remap_end_vaddr[nid])
> -               return 0;
> +               return NULL;
>
>        node_remap_alloc_vaddr[nid] += size;
>        memset(allocation, 0, size);
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ