]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 Sep 2011 16:03:16 +0000 (09:03 -0700)
commit0f018e260f13a543c96bd24ca4ffcb94ccc37774
treea2ed7bbc8339e203c4ef9e41d2181b2da7bb5241
parent69b055340bc616f991671a17a3537194dcae7cfd
hfsplus: Fix kfree of wrong pointers in hfsplus_fill_super() error path

Commit b900c8d85754 ("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>
Cc: <stable@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/hfsplus/super.c
fs/hfsplus/wrapper.c