We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a078d2 commit f78331fCopy full SHA for f78331f
tools/lib/bpf/xsk.c
@@ -891,13 +891,14 @@ int xsk_umem__delete(struct xsk_umem *umem)
891
void xsk_socket__delete(struct xsk_socket *xsk)
892
{
893
size_t desc_sz = sizeof(struct xdp_desc);
894
- struct xsk_ctx *ctx = xsk->ctx;
895
struct xdp_mmap_offsets off;
+ struct xsk_ctx *ctx;
896
int err;
897
898
if (!xsk)
899
return;
900
901
+ ctx = xsk->ctx;
902
if (ctx->prog_fd != -1) {
903
xsk_delete_bpf_maps(xsk);
904
close(ctx->prog_fd);
0 commit comments