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

Commit 8bc5191b authored by Al Viro's avatar Al Viro
Browse files

qnx4: don't leak ->BitMap on late failure exits



Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4134bf81
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -256,7 +256,7 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)
	if (IS_ERR(root)) {
		printk(KERN_ERR "qnx4: get inode failed\n");
		ret = PTR_ERR(root);
 		goto out;
 		goto outb;
 	}

	ret = -ENOMEM;
@@ -269,6 +269,8 @@ static int qnx4_fill_super(struct super_block *s, void *data, int silent)

      outi:
	iput(root);
      outb:
	kfree(qs->BitMap);
      out:
	brelse(bh);
      outnobh: