Commit bdb43af4 authored by Al Viro's avatar Al Viro
Browse files

qibfs: fix _another_ leak



failure to allocate inode => leaked dentry...

this one had been there since the initial merge; to be fair,
if we are that far OOM, the odds of failing at that particular
allocation are low...

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 0f5cce3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
	struct inode *inode = new_inode(dir->i_sb);

	if (!inode) {
		dput(dentry);
		error = -EPERM;
		goto bail;
	}