mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 12:28:41 +08:00
orangefs: don't let orangefs_new_inode return NULL
Suggested by Dan Carpenter Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
2978d87347
commit
56249998b2
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user