]> git.karo-electronics.de Git - karo-tx-linux.git/commit
romfs: fix returm err while getting inode in fill_super
authorRui Xiang <rui.xiang@huawei.com>
Fri, 3 Jan 2014 03:10:36 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:36 +0000 (14:10 +1100)
commit6923cc28f689ad89b30cf5afb97c22fb3037d734
treef8437963ca39fd9563121da1675169b2e8e88f07
parentfad5f1846f0e1b076176c3d88b86ce42dd8066ab
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>
fs/romfs/super.c