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  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, 2 Feb 2007 15:32:01 -0500
From:	"John W. Linville" <linville@...driver.com>
To:	Larry Finger <Larry.Finger@...inger.net>
Cc:	Michael Buesch <mb@...sch.de>, netdev@...r.kernel.org,
	Bcm43xx-dev@...ts.berlios.de
Subject: Re: [PATCH] ieee80211: Fix sparse warning

On Wed, Jan 31, 2007 at 06:50:19PM -0600, Larry Finger wrote:
> Sparse issues the warning "warning: symbol 'crypt' shadows an earlier one"
> in net/ieee80211/ieee80211_tx.c.
> 
> Signed-off-by: Larry Finger <Larry.Finger@...inger.net>
> ---
> 
> Index: wireless-2.6/net/ieee80211/ieee80211_tx.c
> ===================================================================
> --- wireless-2.6.orig/net/ieee80211/ieee80211_tx.c
> +++ wireless-2.6/net/ieee80211/ieee80211_tx.c
> @@ -502,8 +502,6 @@ int ieee80211_xmit(struct sk_buff *skb, 
>  		if (host_encrypt)
>  			ieee80211_encrypt_fragment(ieee, skb_frag, hdr_len);
>  		else if (host_build_iv) {
> -			struct ieee80211_crypt_data *crypt;
> -
>  			crypt = ieee->crypt[ieee->tx_keyidx];
>  			atomic_inc(&crypt->refcnt);
>  			if (crypt->ops->build_iv)

Couldn't you remove the "crypt = ieee->crypt[ieee->tx_keyidx];"
as well?

John
-- 
John W. Linville
linville@...driver.com
-
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