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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 6 May 2008 16:18:43 -0700
From:	Stephen Hemminger <shemminger@...ux-foundation.org>
To:	Jesse Brandeburg <jesse.brandeburg@...el.com>
Cc:	jeff@...zik.org, netdev@...r.kernel.org,
	Jesse Brandeburg <jesse.brandeburg@...el.com>
Subject: Re: [PATCH] sky2: fix simple define thinko

On Tue, 06 May 2008 14:34:35 -0700
Jesse Brandeburg <jesse.brandeburg@...el.com> wrote:

> noticed while browsing code, apparent thinko.  compile tested only.
> 
> Signed-off-by: Jesse Brandeburg <jesse.brandeburg@...el.com>
> CC: Stephen Hemminger <shemminger@...ux-foundation.org>
> ---
> 
>  drivers/net/sky2.h |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> 
> diff --git a/drivers/net/sky2.h b/drivers/net/sky2.h
> index 7bb3ba9..c0a5eea 100644
> --- a/drivers/net/sky2.h
> +++ b/drivers/net/sky2.h
> @@ -1966,13 +1966,13 @@ struct sky2_status_le {
>  struct tx_ring_info {
>  	struct sk_buff	*skb;
>  	DECLARE_PCI_UNMAP_ADDR(mapaddr);
> -	DECLARE_PCI_UNMAP_ADDR(maplen);
> +	DECLARE_PCI_UNMAP_LEN(maplen);
>  };
>  
>  struct rx_ring_info {
>  	struct sk_buff	*skb;
>  	dma_addr_t	data_addr;
> -	DECLARE_PCI_UNMAP_ADDR(data_size);
> +	DECLARE_PCI_UNMAP_LEN(data_size);
>  	dma_addr_t	frag_addr[ETH_JUMBO_MTU >> PAGE_SHIFT];
>  };
>  
> 

Yes, this looks okay. We were safe up till now because ADDR > LEN
--
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