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]
Message-ID: <20080501003251.022fec3d@core>
Date:	Thu, 1 May 2008 00:32:51 +0100
From:	Alan Cox <alan@...rguk.ukuu.org.uk>
To:	Harvey Harrison <harvey.harrison@...il.com>
Cc:	Linus Torvalds <torvalds@...ux-foundation.org>,
	Al Viro <viro@...IV.linux.org.uk>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 4/4] drivers: atm, char fix integer as NULL pointer
 warnings

> diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c
> index 4d3c701..98b65a2 100644
> --- a/drivers/char/tty_io.c
> +++ b/drivers/char/tty_io.c
> @@ -1180,7 +1180,7 @@ struct tty_driver *tty_find_polling_driver(char *name, int *line)
>  		if (*str == ',')
>  			str++;
>  		if (*str == '\0')
> -			str = 0;
> +			str = NULL;
>  
>  		if (tty_line >= 0 && tty_line <= p->num && p->poll_init &&
>  				!p->poll_init(p, tty_line, str)) {

Acked-by: Alan Cox <alan@...hat.com>
--
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