]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ocfs2: add necessary check in case sb_getblk() fails
authorRui Xiang <rui.xiang@huawei.com>
Tue, 5 Nov 2013 05:55:02 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:02 +0000 (16:55 +1100)
commit92782f54c74897b1b8c8eff7191fc66ecf0c1007
tree540bf928e4f4a65ea8607903b02210c44975383b
parent8bf2098526901c9991d22d6b8b5ad713b9b6d09d
ocfs2: add necessary check in case sb_getblk() fails

sb_getblk() may return an err, so add a check for bh.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Mark Fasheh <mfasheh@suse.de>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/ocfs2/refcounttree.c