From: Zbigniew Jędrzejewski-Szmek Date: Tue, 26 May 2020 14:07:30 +0000 (+0200) Subject: core: add forgotten return in error path X-Git-Tag: v246-rc1~268^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1414090854829003c0d234042b218a3bd6f1cb0f;p=thirdparty%2Fsystemd.git core: add forgotten return in error path If we get an error here, this is most likely oom, and we should not continue. --- diff --git a/src/core/load-fragment.c b/src/core/load-fragment.c index 352798fd6ac..6b97cf47976 100644 --- a/src/core/load-fragment.c +++ b/src/core/load-fragment.c @@ -4782,7 +4782,7 @@ int unit_load_fragment(Unit *u) { &u->manager->unit_name_map, &u->manager->unit_path_cache); if (r < 0) - log_error_errno(r, "Failed to rebuild name map: %m"); + return log_error_errno(r, "Failed to rebuild name map: %m"); r = unit_file_find_fragment(u->manager->unit_id_map, u->manager->unit_name_map,