lkml.org 
[lkml]   [2005]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH ieee80211] fix TX skb allocation flags and size
Michael Buesch wrote:
> @@ -221,11 +221,13 @@ static struct ieee80211_txb *ieee80211_a
> txb->frag_size = txb_size;
>
> for (i = 0; i < nr_frags; i++) {
> - txb->fragments[i] = dev_alloc_skb(txb_size);
> + txb->fragments[i] = __dev_alloc_skb(txb_size + headroom,
> + gfp_mask | GFP_DMA);
> if (unlikely(!txb->fragments[i])) {
> i--;

Very wrong. GFP_DMA means ISA DMA.

See pci_map_xxx() and other DMA API functions.

Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-14 01:07    [W:0.040 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site