mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]>
This commit is contained in:
parent
a6343afb6e
commit
8e1c091ccc
5 changed files with 7 additions and 6 deletions
|
|
@ -385,7 +385,7 @@ copy_msqid_from_user(struct msq_setbuf *out, void __user *buf, int version)
|
|||
asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
|
||||
{
|
||||
struct kern_ipc_perm *ipcp;
|
||||
struct msq_setbuf setbuf;
|
||||
struct msq_setbuf uninitialized_var(setbuf);
|
||||
struct msg_queue *msq;
|
||||
int err, version;
|
||||
struct ipc_namespace *ns;
|
||||
|
|
@ -509,7 +509,7 @@ asmlinkage long sys_msgctl(int msqid, int cmd, struct msqid_ds __user *buf)
|
|||
err = audit_ipc_obj(ipcp);
|
||||
if (err)
|
||||
goto out_unlock_up;
|
||||
if (cmd==IPC_SET) {
|
||||
if (cmd == IPC_SET) {
|
||||
err = audit_ipc_set_perm(setbuf.qbytes, setbuf.uid, setbuf.gid,
|
||||
setbuf.mode);
|
||||
if (err)
|
||||
|
|
|
|||
Loading…
Reference in a new issue