Change .gitignore to ignore *.diff only at rootdir.
[people/pmueller/ipfire-2.x.git] / src / patches / compat-wireless_rt2500pci-skb_allignment.patch
1 diff -Nur linux-2.6.29-org/drivers/net/wireless/rt2x00/rt2x00queue.c linux-2.6.29/drivers/net/wireless/rt2x00/rt2x00queue.c
2 --- linux-2.6.29-org/drivers/net/wireless/rt2x00/rt2x00queue.c 2009-03-24 00:12:14.000000000 +0100
3 +++ linux-2.6.29/drivers/net/wireless/rt2x00/rt2x00queue.c 2009-04-16 17:08:39.000000000 +0200
4 @@ -105,6 +105,14 @@
5 */
6 skb_push(skb, rt2x00dev->hw->extra_tx_headroom);
7
8 + if( (int)skb->data & 3 ) {
9 + int align = (int)skb->data & 3;
10 + int len = skb->len;
11 + skb_push(skb, align);
12 + memmove(skb->data, skb->data+align, len);
13 + skb_trim(skb, len);
14 + }
15 +
16 skbdesc->skb_dma =
17 dma_map_single(rt2x00dev->dev, skb->data, skb->len, DMA_TO_DEVICE);
18