romfs: fix returm err while getting inode in fill_super
authorRui Xiang <rui.xiang@huawei.com>
Thu, 23 Jan 2014 23:56:19 +0000 (15:56 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:37:04 +0000 (16:37 -0800)
commit40e2c71d57565a82970a5a2b75f7eb67bb3252f4
treeeb652db714dfb7d4565baa3c124c9f2d982394fd
parent3089a4c8d3abc7e2ab105d1d39d415110d1566d6
romfs: fix returm err while getting inode in fill_super

Getting an inode by romfs_iget may lead to an err in fill_super, and the
err value should be return.

And it should return -ENOMEM instead while d_make_root fails, fix it too.

Signed-off-by: Rui Xiang <rui.xiang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/romfs/super.c