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] [day] [month] [year] [list]
Date:	Tue, 4 Sep 2012 12:00:23 +0200
From:	Jan Kara <jack@...e.cz>
To:	Sachin Kamat <sachin.kamat@...aro.org>
Cc:	linux-ext4@...r.kernel.org, jack@...e.cz,
	akpm@...ux-foundation.org, patches@...aro.org
Subject: Re: [PATCH] ext3: Replace 0 with NULL for pointer in super.c file

On Tue 04-09-12 13:42:00, Sachin Kamat wrote:
> Fixes the following sparse warning:
> fs/ext3/super.c:983:45: warning: Using plain integer as NULL pointer
> 
> Signed-off-by: Sachin Kamat <sachin.kamat@...aro.org>
  Thanks. I've added the patch to my tree.

								Honza

> ---
>  fs/ext3/super.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/fs/ext3/super.c b/fs/ext3/super.c
> index cf1fb17..0e17142 100644
> --- a/fs/ext3/super.c
> +++ b/fs/ext3/super.c
> @@ -980,7 +980,7 @@ static int parse_options (char *options, struct super_block *sb,
>  		 * Initialize args struct so we know whether arg was
>  		 * found; some options take optional arguments.
>  		 */
> -		args[0].to = args[0].from = 0;
> +		args[0].to = args[0].from = NULL;
>  		token = match_token(p, tokens, args);
>  		switch (token) {
>  		case Opt_bsd_df:
> -- 
> 1.7.4.1
> 
-- 
Jan Kara <jack@...e.cz>
SUSE Labs, CR
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ