Skip to content

Commit

Permalink
ipc/msg: replace one-element array with flexible array member
Browse files Browse the repository at this point in the history
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: KSPP/linux#79
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Thorsten Blum <[email protected]>
Cc: "Sun, Jiebin" <[email protected]>
Cc: Tim Chen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
toblux authored and akpm00 committed Oct 30, 2024
1 parent a897b96 commit bb03ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,7 @@ SYSCALL_DEFINE4(msgsnd, int, msqid, struct msgbuf __user *, msgp, size_t, msgsz,

struct compat_msgbuf {
compat_long_t mtype;
char mtext[1];
char mtext[];
};

long compat_ksys_msgsnd(int msqid, compat_uptr_t msgp,
Expand Down

0 comments on commit bb03ed1

Please sign in to comment.