--- a/net/core/dev.c
+++ b/net/core/dev.c
-@@ -9399,14 +9399,17 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9351,14 +9351,17 @@ int bpf_xdp_link_attach(const union bpf_
struct net_device *dev;
int err, fd;
}
bpf_link_init(&link->link, BPF_LINK_TYPE_XDP, &bpf_xdp_link_lops, prog);
-@@ -9416,14 +9419,14 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9368,14 +9371,14 @@ int bpf_xdp_link_attach(const union bpf_
err = bpf_link_prime(&link->link, &link_primer);
if (err) {
kfree(link);
bpf_link_cleanup(&link_primer);
goto out_put_dev;
}
-@@ -9433,6 +9436,9 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9385,6 +9388,9 @@ int bpf_xdp_link_attach(const union bpf_
dev_put(dev);
return fd;