]> git.baikalelectronics.ru Git - kernel.git/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)
commit8d5463e4ee84f18202aabe8bbebdf7c9425a4d2c
tree0c79c3ddb223504789e8f67e609b5924c6cf2ede
parent7adddc78c05b9b96ea9a9fd74998d46fd7a0463a
[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