Skip to content
Snippets Groups Projects
Commit f9a4d893 authored by Thorsten Blum's avatar Thorsten Blum Committed by Andrew Morton
Browse files

ipc/msg: replace one-element array with flexible array member

Replace the deprecated one-element array with a modern flexible array
member in the struct compat_msgbuf.

There are no binary differences after this conversion.

Link: https://github.com/KSPP/linux/issues/79
Link: https://lkml.kernel.org/r/20240930195824.153648-2-thorsten.blum@linux.dev


Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Cc: "Sun, Jiebin" <jiebin.sun@intel.com>
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 9357bf5e
No related branches found
No related tags found
No related merge requests found
...@@ -978,7 +978,7 @@ SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz, ...@@ -978,7 +978,7 @@ SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz,
struct compat_msgbuf { struct compat_msgbuf {
compat_long_t mtype; compat_long_t mtype;
char mtext[1]; char mtext[];
}; };
long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp, long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment