summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorMarcin Wojtas <mw@semihalf.com>2015-11-30 13:27:44 +0100
committerDavid S. Miller <davem@davemloft.net>2015-12-03 05:35:05 +0100
commit26c17a179f3f64f92de6e837c14279a6431a7ab6 (patch)
tree9a0b6e976964e6d1879db6915ef3475b27fda268 /virt
parentnet: mvneta: fix bit assignment for RX packet irq enable (diff)
downloadlinux-26c17a179f3f64f92de6e837c14279a6431a7ab6.tar.xz
linux-26c17a179f3f64f92de6e837c14279a6431a7ab6.zip
net: mvneta: fix error path for building skb
In the actual RX processing, there is same error path for both descriptor ring refilling and building skb fails. This is not correct, because after successful refill, the ring is already updated with newly allocated buffer. Then, in case of build_skb() fail, hitherto code left the original buffer unmapped. This patch fixes above situation by swapping error check of skb build with DMA-unmap of original buffer. Signed-off-by: Marcin Wojtas <mw@semihalf.com> Acked-by: Simon Guinot <simon.guinot@sequanux.org> Cc: <stable@vger.kernel.org> # v4.2+ Fixes a84e32894191 ("net: mvneta: fix refilling for Rx DMA buffers") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions