Unverified Commit a8b012a1 by Christian Brauner Committed by Stéphane Graber

utils: handle > 2^31 in lxc_unstack_mountpoint()

I mean.. really? But better safe than sorry. Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 75022b57
......@@ -2221,10 +2221,15 @@ pop_stack:
if (errno != EINVAL)
return -errno;
} else {
/* Just stop counting when this happens. That'd just be so
* stupid that we won't even bother trying to report back the
* correct value anymore.
*/
if (umounts != INT_MAX)
umounts++;
/* We succeeded in umounting. Make sure that there's no other
* mountpoint stacked underneath.
*/
umounts++;
goto pop_stack;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment