]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: #1435208
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 28 Apr 2018 22:21:33 +0000 (00:21 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 28 Apr 2018 22:21:33 +0000 (00:21 +0200)
Unused value

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 18d04ea25276fa5310cdb1d98f57d7c91082b0e1..fb5e508dbef36aa7f282bc1c4afa69affed5b608 100644 (file)
@@ -2027,7 +2027,8 @@ static int cg_legacy_mount_controllers(int type, struct hierarchy *h,
                                                           controllerpath,
                                                           flags | MS_REMOUNT);
                ret = mount(controllerpath, controllerpath, "cgroup",
-                           MS_REMOUNT | MS_BIND | MS_RDONLY, NULL);
+                           remount_flags | MS_REMOUNT | MS_BIND | MS_RDONLY,
+                           NULL);
                if (ret < 0) {
                        SYSERROR("Failed to remount \"%s\" ro", controllerpath);
                        return -1;