Commit 56249998 authored by Mike Marshall's avatar Mike Marshall

orangefs: don't let orangefs_new_inode return NULL

Suggested by Dan Carpenter
Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 2978d873
......@@ -448,7 +448,7 @@ struct inode *orangefs_new_inode(struct super_block *sb, struct inode *dir,
inode = new_inode(sb);
if (!inode)
return NULL;
return ERR_PTR(-ENOMEM);
orangefs_set_inode(inode, ref);
inode->i_ino = hash; /* needed for stat etc */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment