summaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/ocfs2.h
diff options
context:
space:
mode:
authorXue jiufei <xuejiufei@huawei.com>2015-06-24 16:55:20 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-06-24 17:49:39 -0700
commit74e364ad1b13fd518a0bd4e5aec56d5e8706152f (patch)
treefb2c14c51cf5c4d85252893e5a24ea2191ac19e4 /fs/ocfs2/ocfs2.h
parentfce56d841ef9ab0333423f2c8e329f7341e9f44c (diff)
downloadop-kernel-dev-74e364ad1b13fd518a0bd4e5aec56d5e8706152f.zip
op-kernel-dev-74e364ad1b13fd518a0bd4e5aec56d5e8706152f.tar.gz
ocfs2: fix NULL pointer dereference in function ocfs2_abort_trigger()
ocfs2_abort_trigger() use bh->b_assoc_map to get sb. But there's no function to set bh->b_assoc_map in ocfs2, it will trigger NULL pointer dereference while calling this function. We can get sb from bh->b_bdev->bd_super instead of b_assoc_map. [akpm@linux-foundation.org: update comment, per Joseph] Signed-off-by: joyce.xue <xuejiufei@huawei.com> Cc: Joseph Qi <joseph.qi@huawei.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 'fs/ocfs2/ocfs2.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud