]> git.ipfire.org Git - thirdparty/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>
Thu, 23 Aug 2018 20:56:22 +0000 (22:56 +0200)
Unused value

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

index 3677d4fe3f1e870ddaae47f90a1732bca81e6771..fcb3b4be71517974430bf2363ad55d9b4d04ce70 100644 (file)
@@ -2005,7 +2005,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;