diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/msg.c | 4 | ||||
-rw-r--r-- | ipc/sem.c | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -385,7 +385,7 @@ copy_msqid_from_user(struct msq_setbuf *out, void __user *buf, int version) | |||
385 | asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf) | 385 | asmlinkage 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) |
@@ -856,7 +856,7 @@ static int semctl_down(struct ipc_namespace *ns, int semid, int semnum, | |||
856 | { | 856 | { |
857 | struct sem_array *sma; | 857 | struct sem_array *sma; |
858 | int err; | 858 | int err; |
859 | struct sem_setbuf setbuf; | 859 | struct sem_setbuf uninitialized_var(setbuf); |
860 | struct kern_ipc_perm *ipcp; | 860 | struct kern_ipc_perm *ipcp; |
861 | 861 | ||
862 | if(cmd == IPC_SET) { | 862 | if(cmd == IPC_SET) { |