chushi: kabi: add reserved fields for core structure of message queue
add reserved fields to msg_msg for kernel binary interface compatibility or emergency bug fix. and initialize them to zero when allocated. Signed-off-by: Jiaolong He <hejiaolong@kernelsoft.com>
This commit is contained in:
parent
71d84b1ac1
commit
39e7ddce21
|
@ -12,6 +12,10 @@ struct msg_msg {
|
|||
size_t m_ts; /* message text size */
|
||||
struct msg_msgseg *next;
|
||||
void *security;
|
||||
|
||||
unsigned long chushi_reserve1;
|
||||
unsigned long chushi_reserve2;
|
||||
|
||||
/* the actual message follows immediately */
|
||||
};
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@ static struct msg_msg *alloc_msg(size_t len)
|
|||
|
||||
msg->next = NULL;
|
||||
msg->security = NULL;
|
||||
msg->chushi_reserve1 = 0;
|
||||
msg->chushi_reserve2 = 0;
|
||||
|
||||
len -= alen;
|
||||
pseg = &msg->next;
|
||||
|
|
Loading…
Reference in New Issue