c/r: ipc: uninitialized variable in compat_do_msg_fill()
PATCH 1/1 c/r: ipc: uninitialized variable in compat_do_msg_fill()
We never initialize "msgp". It's unfortunate that GCC doesn't warn about this.
Signed-off-by Dan Carpenter <[email protected]>
ipc/compat.c +1 -1
@@ -363,7 +363,7 @@ static long compat_do_msg_steal(void __user *dest, struct msg_msg *msg, size_t blong compat_do_msg_fill (void __user *dest,struct msg_msg *msg,size_t bufsz) { -struct compat_msgbuf __user *msgp; +struct compat_msgbuf __user *msgp = dest;size_t msgsz;if (put_user (msg->m_type, &msgp->mtype))