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:	Mon, 16 Mar 2015 16:34:13 -0400 (EDT)
From:	David Miller <davem@...emloft.net>
To:	nicolas.dichtel@...nd.com
Cc:	netdev@...r.kernel.org, me@...rre-cheynier.net,
	eric.dumazet@...il.com, steffen.klassert@...unet.com
Subject: Re: [PATCH net v2] ip6_tunnel: fix error code when tunnel exists

From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
Date: Mon, 16 Mar 2015 15:56:05 +0100

> @@ -1445,7 +1445,7 @@ ip6_tnl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
>  		ip6_tnl_parm_from_user(&p1, &p);
>  		t = ip6_tnl_locate(net, &p1, cmd == SIOCADDTUNNEL);
>  		if (cmd == SIOCCHGTUNNEL) {
> -			if (t != NULL) {
> +			if (!IS_ERR(t)) {
>  				if (t->dev != dev) {
>  					err = -EEXIST;
>  					break;

Please convert that last assignment to "err = PTR_ERR(t);", thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" 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