From: Christian Brauner Date: Thu, 18 Feb 2021 09:18:56 +0000 (+0100) Subject: bpf: align struct initialization X-Git-Tag: lxc-5.0.0~278^2~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8828c61a8b201405e1c3a6ba5a9fc88881d14f8a;p=thirdparty%2Flxc.git bpf: align struct initialization Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgroup2_devices.c b/src/lxc/cgroups/cgroup2_devices.c index b0af35570..435cc0dc2 100644 --- a/src/lxc/cgroups/cgroup2_devices.c +++ b/src/lxc/cgroups/cgroup2_devices.c @@ -425,9 +425,9 @@ int bpf_program_cgroup_detach(struct bpf_program *prog) return 0; attr = &(union bpf_attr){ - .attach_type = prog->attached_type, - .target_fd = prog->fd_cgroup, - .attach_bpf_fd = prog->kernel_fd, + .attach_type = prog->attached_type, + .target_fd = prog->fd_cgroup, + .attach_bpf_fd = prog->kernel_fd, }; ret = bpf(BPF_PROG_DETACH, attr, sizeof(*attr));