hfsplus: Fix double iput of the same inode in hfsplus_fill_super()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 23 Jun 2011 21:15:02 +0000 (01:15 +0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jun 2011 11:38:39 +0000 (13:38 +0200)
commit032016a56a1e9c83646435b32e4416d499e1f1ce
tree2918b2e31c5cf65b5ea1a8acd087bfe6dd7a94b7
parent50176ddefa4a942419cb693dd2d8345bfdcde67c
hfsplus: Fix double iput of the same inode in hfsplus_fill_super()

There is a misprint in resource deallocation code on error path in
hfsplus_fill_super(): the sbi->alloc_file inode is iput twice,
while the root inode in not iput at all.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/hfsplus/super.c