]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: fix possible uninitialized variable access
authorJoseph Qi <joseph.qi@huawei.com>
Tue, 7 Apr 2015 23:43:55 +0000 (09:43 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:43:55 +0000 (09:43 +1000)
commit6e14ea77d910a8bad9278f7898a802cf4f74c113
tree653ea0c8d413ed6d0f29bddc1d0aeafbcf5fb25a
parentf9e7f7905916efa87f253004480958d53c69dfc7
ocfs2: fix possible uninitialized variable access

In ocfs2_local_alloc_find_clear_bits and ocfs2_get_dentry, variable
numfound and set may be uninitialized and then used in tracepoint.  In
ocfs2_xattr_block_get and ocfs2_delete_xattr_in_bucket, variable block_off
and xv may be uninitialized and then used in the following logic due to
unchecked return value.

This patch fixes these possible issues.

Signed-off-by: Joseph Qi <joseph.qi@huawei.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/export.c
fs/ocfs2/localalloc.c
fs/ocfs2/xattr.c