projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7057bd9
)
core/namespace: remove invalid check
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 3 Oct 2014 23:16:11 +0000
(19:16 -0400)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 4 Oct 2014 00:42:09 +0000
(20:42 -0400)
root cannot be NULL here, because it was allocated with alloca.
CID #1237769.
src/core/namespace.c
patch
|
blob
|
history
diff --git
a/src/core/namespace.c
b/src/core/namespace.c
index
f76d389
..
f86092f
100644
(file)
--- a/
src/core/namespace.c
+++ b/
src/core/namespace.c
@@
-341,11
+341,8
@@
fail:
unlink(busnode);
}
- if (root) {
- umount(root);
- rmdir(root);
- }
-
+ umount(root);
+ rmdir(root);
rmdir(temporary_mount);
return r;