]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - net/xdp/xdp_umem.c
keys: Fix memory leak in copy_net_ns
[linux.git] / net / xdp / xdp_umem.c
index bba3104f128f1abf04154085380b1ac24428dcff..16d5f353163a166dd4f29a8ae2b99aea63629c22 100644 (file)
@@ -376,8 +376,6 @@ static int xdp_umem_reg(struct xdp_umem *umem, struct xdp_umem_reg *mr)
                        return -EINVAL;
        }
 
-       headroom = ALIGN(headroom, 64);
-
        size_chk = chunk_size - headroom - XDP_PACKET_HEADROOM;
        if (size_chk < 0)
                return -EINVAL;