diff options
| author | Alexander Kochetkov <al.kochet@gmail.com> | 2017-12-15 20:20:06 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-03 10:19:42 +0100 |
| commit | 1c6ca58a82c7b249bba64f734097d60053f6f54a (patch) | |
| tree | baedc1c7344988a55c3c0587c7bb5c91ee500f63 /lib/mpi/longlong.h | |
| parent | 4c963a35f66fc03d8fceceecd261333629a4233a (diff) | |
net: arc_emac: fix arc_emac_rx() error paths
[ Upstream commit e688822d035b494071ecbadcccbd6f3325fb0f59 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/mpi/longlong.h')
0 files changed, 0 insertions, 0 deletions
