Skip to content

Commit

Permalink
qibfs: fix _another_ leak
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro committed Mar 13, 2025
1 parent 0f5cce3 commit bdb43af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/infiniband/hw/qib/qib_fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit bdb43af

Please sign in to comment.