]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Fix access to hostdev capabilities
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 08:00:18 +0000 (10:00 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 09:00:57 +0000 (11:00 +0200)
commit46410c2be8cdcd31a252866e9b5ebe4d75e46c16
tree15b40322d2f367d94d382af83606b4fd078d252b
parent537d90437cf05c502130e4b0c9d439d6efcf3950
lxc: Fix access to hostdev capabilities

In a few places, where a capabilities <hostdev/> is processed, a
wrong union member is access: def->source.subsys.type instead of
def->source.caps.type. Fortunately, both union members have .type
as the very first member so no real harm is done. Nevertheless,
we should access the correct union member.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/lxc/lxc_controller.c
src/lxc/lxc_hostdev.c