]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: adjust unit_get_ancestor_memory_{low,min}() to work with units which don't...
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 24 Apr 2019 08:54:44 +0000 (10:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 25 Apr 2019 09:13:02 +0000 (11:13 +0200)
commitc5322608a5b78d55381fc87985304ec515cd723d
tree83914da3cd990888f68a9952251eeaaef51602f1
parentb6411f716c18e55192c442acbe8fe5595b0c14f4
core: adjust unit_get_ancestor_memory_{low,min}() to work with units which don't have a CGroupContext

Coverity doesn't like the fact that unit_get_cgroup_context() returns NULL for
unit types that don't have a CGroupContext. We don't expect to call those
functions with such unit types, so this isn't an immediate problem, but we can
make things more robust by handling this case.

CID #1400683, #1400684.
src/core/cgroup.c