]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "ubifs: Fix memory leak bug in alloc_ubifs_info() error path"
authorRichard Weinberger <richard@nod.at>
Thu, 24 Oct 2019 08:25:35 +0000 (10:25 +0200)
committerRichard Weinberger <richard@nod.at>
Sun, 17 Nov 2019 21:22:53 +0000 (22:22 +0100)
commit901de7f3609ab98ea0662fc6605a9f640e4cf76b
tree7157e992467542d9a4125399eadea2e0bcc6d9fc
parentb2e71bee71821b120026e21f41785ef852e9dfee
Revert "ubifs: Fix memory leak bug in alloc_ubifs_info() error path"

This reverts commit a11e1192537126a2bd05b668b465179a31045e5e.

At the point when ubifs_fill_super() runs, we have already a reference
to the super block. So upon deactivate_locked_super() c will get
free()'ed via ->kill_sb().

Cc: Wenwen Wang <wenwen@cs.uga.edu>
Fixes: a11e11925371 ("ubifs: Fix memory leak bug in alloc_ubifs_info() error path")
Reported-by: https://twitter.com/grsecurity/status/1180609139359277056
Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
fs/ubifs/super.c