chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7c54c8
)
bus: fix error check in memfd code
author
Lennart Poettering
<lennart@poettering.net>
Fri, 10 May 2013 17:15:55 +0000
(19:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 10 May 2013 17:15:55 +0000
(19:15 +0200)
src/libsystemd-bus/sd-memfd.c
patch
|
blob
|
history
diff --git
a/src/libsystemd-bus/sd-memfd.c
b/src/libsystemd-bus/sd-memfd.c
index 98a8e0893a26723263ad70f54eb8b1300951eff2..2712a26f66057eef31305df76db52148defb11f1 100644
(file)
--- a/
src/libsystemd-bus/sd-memfd.c
+++ b/
src/libsystemd-bus/sd-memfd.c
@@
-43,7
+43,7
@@
int sd_memfd_new(sd_memfd **m) {
return -EINVAL;
kdbus = open("/dev/kdbus/control", O_RDWR|O_NOCTTY|O_CLOEXEC);
- if (
fd
< 0)
+ if (
kdbus
< 0)
return -errno;
if (ioctl(kdbus, KDBUS_CMD_MEMFD_NEW, &fd) < 0)