]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
hfsplus: avoid crash on failed block map free
authorAlan Cox <alan@linux.intel.com>
Thu, 15 Nov 2012 02:38:34 +0000 (13:38 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 15 Nov 2012 06:32:12 +0000 (17:32 +1100)
commitf7124fa35a0b1a7377b7cb0a84eea9e72087556d
treee312a03575319ed3f7141d01debc0665dad055a5
parent8e5fdc8a45270a82ea40db91406c31fd3482cdd0
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