Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 56249998 authored by Mike Marshall's avatar Mike Marshall
Browse files

orangefs: don't let orangefs_new_inode return NULL



Suggested by Dan Carpenter

Signed-off-by: default avatarMike Marshall <hubcap@omnibond.com>
parent 2978d873
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */