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:
390224d
)
connection: fix sparse warning about different address spaces
author
Daniel Mack
<zonque@gmail.com>
Tue, 17 Dec 2013 13:10:26 +0000
(14:10 +0100)
committer
Daniel Mack
<zonque@gmail.com>
Tue, 17 Dec 2013 13:10:26 +0000
(14:10 +0100)
connection.c
patch
|
blob
|
history
diff --git
a/connection.c
b/connection.c
index 9634999b4fac8c93c59123ee68bcb6d8871ce487..033b02109027587b7c0e9c0f30bdb9eb15bc23a1 100644
(file)
--- a/
connection.c
+++ b/
connection.c
@@
-257,8
+257,10
@@
static int kdbus_conn_payload_add(struct kdbus_conn *conn,
* null-bytes to the buffer which the \0-bytes
* record would have shifted the alignment.
*/
- kdbus_pool_write_user(conn->pool, off + vec_data,
- "\0\0\0\0\0\0\0", pad);
+ kdbus_pool_write_user(conn->pool,
+ off + vec_data,
+ (char __user *)
+ "\0\0\0\0\0\0\0", pad);
vec_data += pad;
break;
}