aboutsummaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorDavid Herrmann <dh.herrmann@gmail.com>2015-07-24 12:57:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-07-24 13:29:18 -0700
commit52e895942ba065db563de042a4fff21fb38b26e6 (patch)
tree3caf3cdb57ba5b52b107b5bcff50eb7627158d41 /ipc
parent748cf9547ea30f5a4dfee5e97d1d2ff4b307c392 (diff)
kdbus: fix sparse address-space annotation
Make sure to properly annotate casts in 'struct iovec' if we cross address-spaces, to make sure sparse does not warn about them. All those conversions are fine, as we are allowed to pass those kvecs through the iovec importer. Signed-off-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/kdbus/message.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c
index 3520f45875df..27a5021fe70f 100644
--- a/ipc/kdbus/message.c
+++ b/ipc/kdbus/message.c
@@ -920,7 +920,7 @@ struct kdbus_pool_slice *kdbus_staging_emit(struct kdbus_staging *staging,
/* msg.size */
v->iov_len = sizeof(msg_size);
- v->iov_base = &msg_size;
+ v->iov_base = (void __user *)&msg_size;
++v;
/* msg (after msg.size) plus items */
@@ -937,7 +937,7 @@ struct kdbus_pool_slice *kdbus_staging_emit(struct kdbus_staging *staging,
if (meta_size > 0) {
/* metadata items */
v->iov_len = meta_size;
- v->iov_base = meta_items;
+ v->iov_base = (void __user *)meta_items;
++v;
/* padding after metadata */