mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
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>
This commit is contained in:
parent
0f5cce3fc5
commit
bdb43af4fd
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user