hfsplus: Fix kfree of wrong pointers in hfsplus_fill_super() error path
authorSeth Forshee <seth.forshee@canonical.com>
Thu, 15 Sep 2011 14:48:27 +0000 (10:48 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 25 Oct 2011 05:10:17 +0000 (07:10 +0200)
commitd2a0110b7fb182c2c81144b834ddc7b3d645fe1e
treefa78204b82d29898f685d4c54563ea31d8b746f6
parent818c85eb8d9be62cbe0938b6f93cf34c6663fffe
hfsplus: Fix kfree of wrong pointers in hfsplus_fill_super() error path

commit f588c960fcaa6fa8bf82930bb819c9aca4eb9347 upstream.

Commit 6596528e391a ("hfsplus: ensure bio requests are not smaller than
the hardware sectors") changed the pointers used for volume header
allocations but failed to free the correct pointers in the error path
path of hfsplus_fill_super() and hfsplus_read_wrapper.

The second hunk came from a separate patch by Pavel Ivanov.

Reported-by: Pavel Ivanov <paivanof@gmail.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: Christoph Hellwig <hch@tuxera.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/hfsplus/super.c
fs/hfsplus/wrapper.c