omfs: set error return when d_make_root() fails
authorBob Copeland <me@bobcopeland.com>
Thu, 28 May 2015 22:44:32 +0000 (15:44 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 29 May 2015 01:25:18 +0000 (18:25 -0700)
commit3a281f946640542a7a7372f436e101ee1fbc4c97
tree9a7daf596ddab002528fac2fa2f5b5b4e9eb033f
parentdcbff39da3d815f08750552fdd04f96b51751129
omfs: set error return when d_make_root() fails

A static checker found the following issue in the error path for
omfs_fill_super:

    fs/omfs/inode.c:552 omfs_fill_super()
    warn: missing error code here? 'd_make_root()' failed. 'ret' = '0'

Fix by returning -ENOMEM in this case.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/omfs/inode.c