[lxc-devel] [lxc/lxc] bccf73: cgroups: fix potential nullderef
Christian Brauner
noreply at github.com
Sun Apr 14 13:36:13 UTC 2019
Branch: refs/heads/stable-3.0
Home: https://github.com/lxc/lxc
Commit: bccf738c78b8a136a98603de31686579bba0fc2f
https://github.com/lxc/lxc/commit/bccf738c78b8a136a98603de31686579bba0fc2f
Author: Christian Brauner <christian.brauner at ubuntu.com>
Date: 2019-04-14 (Sun, 14 Apr 2019)
Changed paths:
M src/lxc/cgroups/cgfsng.c
Log Message:
-----------
cgroups: fix potential nullderef
The child_path variable is initialized very late in the function so jumping to
the on_error label would cause a nullderef. With the cleanup macros we can
simplify this function to simply do direct returns and avoid that whole issue.
Closes #2935.
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
More information about the lxc-devel
mailing list