[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20130919.141542.1144278748310267289.davem@davemloft.net>
Date: Thu, 19 Sep 2013 14:15:42 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: mpatocka@...hat.com
Cc: stephen@...workplumber.org, netdev@...r.kernel.org,
vascom2@...il.com
Subject: Re: [PATCH v2] skge: fix broken driver
From: Mikulas Patocka <mpatocka@...hat.com>
Date: Thu, 19 Sep 2013 14:13:17 -0400 (EDT)
> The patch 136d8f377e1575463b47840bc5f1b22d94bf8f63 broke the skge driver.
> Note this part of the patch:
> + if (skge_rx_setup(skge, e, nskb, skge->rx_buf_size) < 0) {
> + dev_kfree_skb(nskb);
> + goto resubmit;
> + }
> +
> pci_unmap_single(skge->hw->pdev,
> dma_unmap_addr(e, mapaddr),
> dma_unmap_len(e, maplen),
> PCI_DMA_FROMDEVICE);
> skb = e->skb;
> prefetch(skb->data);
> - skge_rx_setup(skge, e, nskb, skge->rx_buf_size);
>
> The function skge_rx_setup modifies e->skb to point to the new skb. Thus,
> after this change, the new buffer, not the old, is returned to the
> networking stack.
>
> This bug is present in kernels 3.11, 3.11.1 and 3.12-rc1. The patch should
> be queued for 3.11-stable.
>
> Signed-off-by: Mikulas Patocka <mpatocka@...hat.com>
> Reported-by: Mikulas Patocka <mpatocka@...hat.com>
> Reported-by: Vasiliy Glazov <vascom2@...il.com>
> Tested-by: Mikulas Patocka <mpatocka@...hat.com>
Applied and queued up for -stable, thanks.
--
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