From: Phillip Lougher Date: Tue, 3 Sep 2013 03:02:53 +0000 (+0100) Subject: Squashfs: fix corruption check in get_dir_index_using_name() X-Git-Tag: v3.12-rc1~55^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dbc41d5d371cb10099c8182552f3915920e69b6;p=pandora-kernel.git Squashfs: fix corruption check in get_dir_index_using_name() Patch "Squashfs: sanity check information from disk" from Dan Carpenter adds a missing check for corruption in the "size" field while reading the directory index from disk. It, however, sets err to -EINVAL, this value is not used later, and so setting it is completely redundant. So remove it. Errors in reading the index are deliberately non-fatal. If we get an error in reading the index we just return the part of the index we have managed to read - the index isn't essential, just quicker. Signed-off-by: Phillip Lougher --- Reading git-diff-tree failed