diff options
author | Alexander Kochetkov <al.kochet@gmail.com> | 2017-12-15 20:20:06 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-19 13:24:23 -0500 |
commit | e688822d035b494071ecbadcccbd6f3325fb0f59 (patch) | |
tree | ff923bd3c48d2f90919f102f76b99ef7272b5974 /lib | |
parent | 7352e252b5bf40d59342494a70354a2d436fd0cd (diff) |
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 'lib')
0 files changed, 0 insertions, 0 deletions