- virDriverLoadModule() call when loading the storage driver (line 908)
was not checked, while there are examples with return code check
throughout the code.
---
src/security/virt-aa-helper.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c
index f4ec6b7826..2de1b31b5a 100644
--- a/src/security/virt-aa-helper.c
+++ b/src/security/virt-aa-helper.c
@@ -892,7 +892,8 @@ get_files(vahControl * ctl)
/* load the storage driver so that backing store can be accessed */
#ifdef WITH_STORAGE
- virDriverLoadModule("storage", "storageRegister", false);
+ if (virDriverLoadModule("storage", "storageRegister", false) < 0)
+ goto cleanup;("storage", "storageRegister", false);
#endif
for (i = 0; i < ctl->def->ndisks; i++) {
--
2.34.1