diff options
-rw-r--r-- | arch/i386/kernel/efi.c | 2 | ||||
-rw-r--r-- | fs/ocfs2/file.c | 3 | ||||
-rw-r--r-- | fs/udf/super.c | 2 | ||||
-rw-r--r-- | ipc/msg.c | 4 | ||||
-rw-r--r-- | ipc/sem.c | 2 |
5 files changed, 7 insertions, 6 deletions
diff --git a/arch/i386/kernel/efi.c b/arch/i386/kernel/efi.c index a1808022ea19..2452c6fbe992 100644 --- a/arch/i386/kernel/efi.c +++ b/arch/i386/kernel/efi.c | |||
@@ -278,7 +278,7 @@ void efi_memmap_walk(efi_freemem_callback_t callback, void *arg) | |||
278 | struct range { | 278 | struct range { |
279 | unsigned long start; | 279 | unsigned long start; |
280 | unsigned long end; | 280 | unsigned long end; |
281 | } prev, curr; | 281 | } uninitialized_var(prev), curr; |
282 | efi_memory_desc_t *md; | 282 | efi_memory_desc_t *md; |
283 | unsigned long start, end; | 283 | unsigned long start, end; |
284 | void *p; | 284 | void *p; |
diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index f04c7aa834cb..004c2abbc732 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c | |||
@@ -1867,7 +1867,8 @@ static ssize_t ocfs2_file_buffered_write(struct file *file, loff_t *ppos, | |||
1867 | loff_t pos; | 1867 | loff_t pos; |
1868 | const struct iovec *cur_iov = iov; | 1868 | const struct iovec *cur_iov = iov; |
1869 | struct page *user_page, *page; | 1869 | struct page *user_page, *page; |
1870 | char *buf, *dst; | 1870 | char * uninitialized_var(buf); |
1871 | char *dst; | ||
1871 | void *fsdata; | 1872 | void *fsdata; |
1872 | 1873 | ||
1873 | /* | 1874 | /* |
diff --git a/fs/udf/super.c b/fs/udf/super.c index 6658afb41cc7..d6a504f5d758 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -1356,7 +1356,7 @@ udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset) | |||
1356 | case UDF_VIRTUAL_MAP15: | 1356 | case UDF_VIRTUAL_MAP15: |
1357 | case UDF_VIRTUAL_MAP20: | 1357 | case UDF_VIRTUAL_MAP20: |
1358 | { | 1358 | { |
1359 | kernel_lb_addr ino; | 1359 | kernel_lb_addr uninitialized_var(ino); |
1360 | 1360 | ||
1361 | if (!UDF_SB_LASTBLOCK(sb)) | 1361 | if (!UDF_SB_LASTBLOCK(sb)) |
1362 | { | 1362 | { |
@@ -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) { |