]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Add a null undo function to the vmbackup null provider.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 13 Sep 2022 17:31:15 +0000 (10:31 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 13 Sep 2022 17:31:15 +0000 (10:31 -0700)
commitabd63f3785f8e4ec5384f55021b070be22c7cf8f
tree320043130c5adf0f15dfa8fd98abfc44944717a9
parent42437c1131ee990737986d3fd5248bd17ec3e5ff
Add a null undo function to the vmbackup null provider.

If a snapshot operation times out, vmbackup can attempt
to undo quiescing.  Since no quiescing is done for the null
backup provider, no undo function was provided.  If vmbackup
attempts to call the undo function, it dereferences a garbage
pointer resulting in a segfault.

Rather than add null backup provider specific checks to vmbackup,
this change adds a null undo function to provide vmbackup with a
valid function pointer it can call.  The new undo function updates
the vmbackup state machine state with a new currentOpName, but
has no other effect.  currentOpName is set to the calling
function name, e.g. __FUNCTION__.
open-vm-tools/services/plugins/vmbackup/nullProvider.c