diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-31 04:53:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-31 04:53:10 -0700 |
commit | 4f0fec033521c30f95e14ed817bbeef43cd15315 (patch) | |
tree | df1d53353c4fb919977dcd37612c06de69623be9 | |
parent | 89c1594473d5c27d67cc72915c3d304949207647 (diff) | |
download | kdbus-bus-4f0fec033521c30f95e14ed817bbeef43cd15315.tar.gz kdbus-bus-4f0fec033521c30f95e14ed817bbeef43cd15315.tar.bz2 kdbus-bus-4f0fec033521c30f95e14ed817bbeef43cd15315.zip |
KDBUS_PTR is really a __user pointer, so mark it as such.
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index e46df08703e..6da025a9523 100644 --- a/internal.h +++ b/internal.h @@ -35,7 +35,7 @@ #define KDBUS_CHAR_MAJOR 222 /* FIXME: move to uapi/linux/major.h */ /* exported addresses are 64bit */ -#define KDBUS_PTR(addr) ((void *)(uintptr_t)(addr)) +#define KDBUS_PTR(addr) ((void __user *)(uintptr_t)(addr)) /* exported sizes are 64bit and data aligned to 64 bit */ #define KDBUS_ALIGN8(s) ALIGN((s), 8) |