diff options
author | Mike Marshall <hubcap@omnibond.com> | 2018-10-18 19:47:16 +0200 |
---|---|---|
committer | Mike Marshall <hubcap@omnibond.com> | 2018-10-18 19:47:16 +0200 |
commit | 56249998b25f602f8dedbe916ec5494b71da113d (patch) | |
tree | 7968921b2a060a65e2319b0c6d4d9baf4a553978 /fs/orangefs | |
parent | orangefs: rate limit the client not running info message (diff) | |
download | linux-56249998b25f602f8dedbe916ec5494b71da113d.tar.xz linux-56249998b25f602f8dedbe916ec5494b71da113d.zip |
orangefs: don't let orangefs_new_inode return NULL
Suggested by Dan Carpenter
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Diffstat (limited to 'fs/orangefs')
-rw-r--r-- | fs/orangefs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/orangefs/inode.c b/fs/orangefs/inode.c index 31932879b716..c1b4ce399ab7 100644 --- a/fs/orangefs/inode.c +++ b/fs/orangefs/inode.c @@ -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 */ |