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: <52CB5F2D.6020908@infradead.org>
Date:	Mon, 06 Jan 2014 17:58:05 -0800
From:	Randy Dunlap <rdunlap@...radead.org>
To:	David Miller <davem@...emloft.net>
CC:	akpm@...ux-foundation.org, rmody@...cade.com,
	linux-kernel@...r.kernel.org, netdev@...r.kernel.org,
	linux-next@...r.kernel.org
Subject: Re: mmotm 2014-01-02-14-35 uploaded (brocade/bna)

On 01/06/14 17:38, David Miller wrote:
> From: David Miller <davem@...emloft.net>
> Date: Mon, 06 Jan 2014 17:24:27 -0500 (EST)
> 
>> From: Randy Dunlap <rdunlap@...radead.org>
>> Date: Fri, 03 Jan 2014 10:26:01 -0800
>>
>>> as reported for linux-next of Dec.20, 2013
>>> when CONFIG_NEED_DMA_MAP_STATE is not enabled:
>>>
>>> drivers/net/ethernet/brocade/bna/bnad.c: In function 'bnad_start_xmit':
>>> drivers/net/ethernet/brocade/bna/bnad.c:3074:26: error: 'struct bnad_tx_vector' has no member named 'dma_len'
>>
>> Sorry for taking so long, I plan to look into this tonight Randy.
> 
> I just committed the following fix for this, thanks!
> 

Acked-by: Randy Dunlap <rdunlap@...radead.org>

Thanks, Dave.


> ====================
> [PATCH] bna: Fix build due to missing use of dma_unmap_len_set()
> 
>> as reported for linux-next of Dec.20, 2013
>> when CONFIG_NEED_DMA_MAP_STATE is not enabled:
>>
>> drivers/net/ethernet/brocade/bna/bnad.c: In function 'bnad_start_xmit':
>> drivers/net/ethernet/brocade/bna/bnad.c:3074:26: error: 'struct bnad_tx_vector' has no member named 'dma_len'
> 
> Reported-by: Randy Dunlap <rdunlap@...radead.org>
> Signed-off-by: David S. Miller <davem@...emloft.net>
> ---
>  drivers/net/ethernet/brocade/bna/bnad.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
> index d31524f..5f24a9f 100644
> --- a/drivers/net/ethernet/brocade/bna/bnad.c
> +++ b/drivers/net/ethernet/brocade/bna/bnad.c
> @@ -3071,11 +3071,11 @@ bnad_start_xmit(struct sk_buff *skb, struct net_device *netdev)
>  
>  		dma_addr = skb_frag_dma_map(&bnad->pcidev->dev, frag,
>  					    0, size, DMA_TO_DEVICE);
> -		unmap->vectors[vect_id].dma_len = size;
> +		dma_unmap_len_set(&unmap->vectors[vect_id], dma_len, size);
>  		BNA_SET_DMA_ADDR(dma_addr, &txqent->vector[vect_id].host_addr);
>  		txqent->vector[vect_id].length = htons(size);
>  		dma_unmap_addr_set(&unmap->vectors[vect_id], dma_addr,
> -						dma_addr);
> +				   dma_addr);
>  		head_unmap->nvecs++;
>  	}
>  
> 


-- 
~Randy
--
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