Jan Kara c30b41bbbb udf: Fix crash on IO error during truncate
commit d3ca4651d05c0ff7259d087d8c949bcf3e14fb46 upstream.

When truncate(2) hits IO error when reading indirect extent block the
code just bugs with:

kernel BUG at linux-4.15.0/fs/udf/truncate.c:249!
...

Fix the problem by bailing out cleanly in case of IO error.

CC: stable@vger.kernel.org
Reported-by: jean-luc malet <jeanluc.malet@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-04-03 06:23:14 +02:00
..
2019-02-20 10:13:09 +01:00
2015-01-05 11:04:37 +01:00
2014-07-15 22:40:23 +02:00
2015-06-23 18:01:59 -04:00
2013-09-24 11:23:33 +02:00