]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hfsplus: avoid crash on failed block map free
authorAlan Cox <alan@linux.intel.com>
Thu, 29 Nov 2012 03:18:48 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:41 +0000 (16:23 +1100)
commit9ddf1cfb6edbf802311c5672b71e1f2b725003be
treed373886b713966c443d871d169f67c825267cbd7
parent628bee8fae8c6eb6b8e151ad462c36afdd686e4c
hfsplus: avoid crash on failed block map free

If the read fails we kmap an error code.  This doesn't end well.  Instead
print a critical error and pray.  This mirrors the rest of the fs
behaviour with critical error cases.

Acked-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Vyacheslav Dubeyko <slava@dubeyko.com>
Cc: Hin-Tak Leung <htl10@users.sourceforge.net>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hfsplus/bitmap.c