]> err.no Git - linux-2.6/commit
[GFS2] gfs2_dir_read_data(): fix uninitialized variable usage
authorAdrian Bunk <bunk@stusta.de>
Thu, 19 Oct 2006 14:02:07 +0000 (16:02 +0200)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 20 Oct 2006 13:16:20 +0000 (09:16 -0400)
commitb7d8ac3e1779c30ddef0a8f38042076c5007a23d
tree0c79c3ddb223504789e8f67e609b5924c6cf2ede
parentbbbe4512735eb0f15f09ffd14876091a8e91bc69
[GFS2] gfs2_dir_read_data(): fix uninitialized variable usage

In the "if (extlen)" case, "bh" was used uninitialized.

This patch changes the code to what seems to have been intended.

Spotted by the Coverity checker.

This patch also removes a pointless "bh = NULL" asignment (the variable
is never accessed again after this point).

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c