Commit 0cf26c7e authored by Ben Fennema's avatar Ben Fennema Committed by Linus Torvalds

[PATCH] UDF oops on inode read failure

This fixes an oops with failed inode reads on UDF
parent 3b9f7811
......@@ -126,7 +126,8 @@ void udf_delete_inode(struct inode * inode)
void udf_clear_inode(struct inode *inode)
{
kfree(UDF_I_DATA(inode));
if (!is_bad_inode(inode))
kfree(UDF_I_DATA(inode));
}
void udf_discard_prealloc(struct inode * inode)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment