diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-30 00:05:59 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-30 00:54:27 +0200 |
commit | 7f4804d4c8b78ca223cee50e22ddaea9903f0930 (patch) | |
tree | b8dfc08b04c876392a5c260fa122d18ef254a6a7 /tools | |
parent | ocfs2: fix error handling in ocfs2_ioctl_move_extents() (diff) | |
download | linux-7f4804d4c8b78ca223cee50e22ddaea9903f0930.tar.xz linux-7f4804d4c8b78ca223cee50e22ddaea9903f0930.zip |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions