projects
/
platform
/
core
/
system
/
kdbus-bus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca6ffbb
)
message: fix double-increade of kmsg->pool_size
author
Daniel Mack
<daniel@zonque.org>
Sun, 21 Dec 2014 00:36:04 +0000
(
01:36
+0100)
committer
Daniel Mack
<daniel@zonque.org>
Sun, 21 Dec 2014 00:36:04 +0000
(
01:36
+0100)
We're already doing this conditionally some lines above.
Fixes SD's ./test-bus-zero-copy.
Signed-off-by: Daniel Mack <daniel@zonque.org>
message.c
patch
|
blob
|
history
diff --git
a/message.c
b/message.c
index a90ecd86b34ecce8ac62fdad15939d0057a5871c..c986b8bdd8e87282be42870aac180ff1d0408812 100644
(file)
--- a/
message.c
+++ b/
message.c
@@
-329,9
+329,6
@@
static int kdbus_msg_scan_items(struct kdbus_kmsg *kmsg,
d->memfd.start = start;
d->memfd.file = f;
- /* memfd-alignment affects following VECs */
- kmsg->pool_size += size % 8;
-
/*
* We only accept a sealed memfd file whose content
* cannot be altered by the sender or anybody else