fs/affs/super.c: bugfix / double free
authorFabian Frederick <fabf@skynet.be>
Tue, 6 May 2014 19:50:11 +0000 (12:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 6 May 2014 20:05:00 +0000 (13:05 -0700)
commitd353efd02357a74753cd45f367a2d3d357fd6904
tree33fe74042cee8e221b31517d8a90fb7e8cbee5b4
parent1e2ee49f7f1b79f0b14884fe6a602f0411b39552
fs/affs/super.c: bugfix / double free

Commit 842a859db26b ("affs: use ->kill_sb() to simplify ->put_super()
and failure exits of ->mount()") adds .kill_sb which frees sbi but
doesn't remove sbi free in case of parse_options error causing double
free+random crash.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: <stable@vger.kernel.org> [3.14.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/affs/super.c