git: da7fc5c33f9a - main - freebsd32: Fix layout of struct shmid_kernel32.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 18 Jan 2022 18:43:11 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=da7fc5c33f9a4c906068a9a43f43f8d295100418
commit da7fc5c33f9a4c906068a9a43f43f8d295100418
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-01-18 18:42:21 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-01-18 18:42:21 +0000
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
---
sys/compat/freebsd32/freebsd32_ipc.h | 8 ++++----
1 file 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