diff options
author | Alexander Kochetkov | 2017-12-15 18:20:06 +0100 |
---|---|---|
committer | David S. Miller | 2017-12-19 19:24:23 +0100 |
commit | e688822d035b494071ecbadcccbd6f3325fb0f59 (patch) | |
tree | ff923bd3c48d2f90919f102f76b99ef7272b5974 /drivers/net/ethernet/arc/emac.h | |
parent | net: mediatek: setup proper state for disabled GMAC on the default (diff) | |
download | kernel-qcow2-linux-e688822d035b494071ecbadcccbd6f3325fb0f59.tar.gz kernel-qcow2-linux-e688822d035b494071ecbadcccbd6f3325fb0f59.tar.xz kernel-qcow2-linux-e688822d035b494071ecbadcccbd6f3325fb0f59.zip |
net: arc_emac: fix arc_emac_rx() error paths
arc_emac_rx() has some issues found by code review.
In case netdev_alloc_skb_ip_align() or dma_map_single() failure
rx fifo entry will not be returned to EMAC.
In case dma_map_single() failure previously allocated skb became
lost to driver. At the same time address of newly allocated skb
will not be provided to EMAC.
Signed-off-by: Alexander Kochetkov <al.kochet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/arc/emac.h')
0 files changed, 0 insertions, 0 deletions