]> xenbits.xensource.com Git - libvirt.git/commit
lxc_controller: Access correct union member in virLXCControllerSetupHostdevCaps()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Sep 2023 12:41:00 +0000 (14:41 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Sep 2023 08:34:23 +0000 (10:34 +0200)
commitd406caefd15b50759b1ba0870b9dee157687ad03
treea9ce3fe6d8f38afe3f358f803492c3393412bc82
parentf26c0018ba44730404c0daf2131dc144d1345672
lxc_controller: Access correct union member in virLXCControllerSetupHostdevCaps()

The point of virLXCControllerSetupHostdevCaps() is to access
.caps union member of given <hostdev/> source. And it does so in
the switch, but then, when reporting an error the .subsys member
is accessed.

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