aboutsummaryrefslogtreecommitdiffstats
path: root/ipc/msg.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-07-17 05:40:59 -0400
committerJeff Garzik <jeff@garzik.org>2007-07-17 16:23:19 -0400
commit8e1c091cccd551557d24ce845715e8ceb6c49d36 (patch)
tree28f1ea20efe46dd6f62cc0cb77f65be56e7225fc /ipc/msg.c
parenta6343afb6e16b65b9f0b264f94f8207212e7e3ae (diff)
arch/i386/* fs/* ipc/*: mark variables with uninitialized_var()
Mark variables with uninitialized_var() if such a warning appears, and analysis proves that the var is initialized properly on all paths it is used. Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'ipc/msg.c')
-rw-r--r--ipc/msg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/msg.c b/ipc/msg.c
index cbd27e519943..a03fcb522fff 100644
--- a/ipc/msg.c
+++ b/ipc/msg.c
@@ -385,7 +385,7 @@ copy_msqid_from_user(struct msq_setbuf *out, void __user *buf, int version)
385asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf) 385asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
386{ 386{
387 struct kern_ipc_perm *ipcp; 387 struct kern_ipc_perm *ipcp;
388 struct msq_setbuf setbuf; 388 struct msq_setbuf uninitialized_var(setbuf);
389 struct msg_queue *msq; 389 struct msg_queue *msq;
390 int err, version; 390 int err, version;
391 struct ipc_namespace *ns; 391 struct ipc_namespace *ns;
@@ -509,7 +509,7 @@ asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
509 err = audit_ipc_obj(ipcp); 509 err = audit_ipc_obj(ipcp);
510 if (err) 510 if (err)
511 goto out_unlock_up; 511 goto out_unlock_up;
512 if (cmd==IPC_SET) { 512 if (cmd == IPC_SET) {
513 err = audit_ipc_set_perm(setbuf.qbytes, setbuf.uid, setbuf.gid, 513 err = audit_ipc_set_perm(setbuf.qbytes, setbuf.uid, setbuf.gid,
514 setbuf.mode); 514 setbuf.mode);
515 if (err) 515 if (err)