]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Initialize data_ac (might be used uninitialized)
authorMarcus Meissner <meissner@suse.de>
Thu, 5 May 2011 17:44:11 +0000 (10:44 -0700)
committerJoel Becker <jlbec@evilplan.org>
Fri, 13 May 2011 18:26:15 +0000 (11:26 -0700)
commit6ceb901ccae0b4db3cfe77e226218dc7c80371a4
tree879f9cc1e9371688ba7d14631e14c83a86ce60ab
parent50a359ca199bafa5a8513b2c17e5cf4f0e93a890
ocfs2: Initialize data_ac (might be used uninitialized)

CLANG found that there is a path that has data_ac uninitialized,
this place
2917 /* This gets us the dx_root */
2918 ret = ocfs2_reserve_new_metadata_blocks(osb, 1, &meta_ac);
2919 if (ret) {

3
Taking true branch
2920 mlog_errno(ret);
2921 goto out;

4
Control jumps to line 3168
2922 }

Goes to the out: label without data_ac being initialized.

Ciao, Marcus

Signed-Off-By: Marcus Meissner <meissner@suse.de>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <jlbec@evilplan.org>
fs/ocfs2/dir.c