]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: fix NULL dereference for moving extents
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 29 Apr 2013 22:05:59 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Apr 2013 22:54:27 +0000 (15:54 -0700)
commit7f4804d4c8b78ca223cee50e22ddaea9903f0930
treeb8dfc08b04c876392a5c260fa122d18ef254a6a7
parent85a258b70d4891a443583530f48ab734a31e2d8d
ocfs2: fix NULL dereference for moving extents

We can't dereference "bg" before it has been assigned.  GCC should have
warned about this but "bg" was initialized to NULL.  I've fixed that as
well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/move_extents.c