connection: fix sparse warning about different address spaces
authorDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 13:10:26 +0000 (14:10 +0100)
committerDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 13:10:26 +0000 (14:10 +0100)
connection.c

index 9634999b4fac8c93c59123ee68bcb6d8871ce487..033b02109027587b7c0e9c0f30bdb9eb15bc23a1 100644 (file)
@@ -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;
                        }