diff options
author | Jesper Dangaard Brouer <brouer@redhat.com> | 2018-07-30 19:49:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-07-31 18:44:41 +0200 |
commit | 39c64d8c876622e766dd2112baf81151dd82da02 (patch) | |
tree | b1bb7579587bf14e0199b644c535a70f52ded8e2 /drivers/xen/xen-balloon.c | |
parent | hv_netvsc: Add per-cpu ethtool stats for netvsc (diff) | |
download | linux-39c64d8c876622e766dd2112baf81151dd82da02.tar.xz linux-39c64d8c876622e766dd2112baf81151dd82da02.zip |
mlx5: handle DMA mapping error case for XDP redirect
Commit 58b99ee3e3eb ("net/mlx5e: Add support for XDP_REDIRECT in device-out side")
forgot to return/free the xdp_frame in case the DMA mapping failed, correct this.
Also DMA unmap the frame in case mlx5e_xmit_xdp_frame() fails.
Fixes: 58b99ee3e3eb ("net/mlx5e: Add support for XDP_REDIRECT in device-out side")
Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/xen/xen-balloon.c')
0 files changed, 0 insertions, 0 deletions