Skip to content

Commit bdb43af

Browse files
author
Al Viro
committed
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: Al Viro <viro@zeniv.linux.org.uk>
1 parent 0f5cce3 commit bdb43af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/infiniband/hw/qib/qib_fs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry,
5555
struct inode *inode = new_inode(dir->i_sb);
5656

5757
if (!inode) {
58+
dput(dentry);
5859
error = -EPERM;
5960
goto bail;
6061
}

0 commit comments

Comments
 (0)