]> git.baikalelectronics.ru Git - kernel.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)
commit58d6c245fcee3d1e08f5cf38b85dcb21fd903acb
treeb8dfc08b04c876392a5c260fa122d18ef254a6a7
parentb1e7df1619913692fc1b009d306e156adc329c7c
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