From: Eric Sandeen Date: Tue, 23 Sep 2014 06:05:32 +0000 (+1000) Subject: xfs: don't ASSERT on corrupt ftype X-Git-Tag: omap-for-v3.19/prcm-cleanup~101^2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb040131561a6b34cefb92cdf598218104abeda0;p=pandora-kernel.git xfs: don't ASSERT on corrupt ftype xfs_dir3_data_get_ftype() gets the file type off disk, but ASSERTs if it's invalid: ASSERT(type < XFS_DIR3_FT_MAX); We shouldn't ASSERT on bad values read from disk. V3 dirs are CRC-protected, but V2 dirs + ftype are not. Signed-off-by: Eric Sandeen Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed