aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-01-18 18:42:21 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-01-18 18:42:21 +0000
commitda7fc5c33f9a4c906068a9a43f43f8d295100418 (patch)
tree0ca500c66ef8f2e4720da643b47fa95f028872f6
parenta3af69fa81d2341a3864edc67419de3b3bad77d9 (diff)
downloadsrc-da7fc5c33f9a4c906068a9a43f43f8d295100418.tar.gz
src-da7fc5c33f9a4c906068a9a43f43f8d295100418.zip
freebsd32: Fix layout of struct shmid_kernel32.
The kernel pointers in this structure need to be 32-bit pointers, not native pointers to 32-bit integers. Reviewed by: kib Sponsored by: The University of Cambridge, Google Inc. Differential Revision: https://reviews.freebsd.org/D33905
-rw-r--r--sys/compat/freebsd32/freebsd32_ipc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/compat/freebsd32/freebsd32_ipc.h b/sys/compat/freebsd32/freebsd32_ipc.h
index 6c34445e363b..e3677d186da9 100644
--- a/sys/compat/freebsd32/freebsd32_ipc.h
+++ b/sys/compat/freebsd32/freebsd32_ipc.h
@@ -104,10 +104,10 @@ struct shmid_ds32 {
#ifdef _KERNEL
struct shmid_kernel32 {
- struct shmid_ds32 u;
- int32_t *object;
- int32_t *label;
- int32_t *cred;
+ struct shmid_ds32 u;
+ int32_t object;
+ int32_t label;
+ int32_t cred;
};
#endif