summaryrefslogtreecommitdiff
path: root/fs/squashfs/super.c
diff options
context:
space:
mode:
authorPhillip Lougher <phillip@squashfs.org.uk>2013-09-03 04:02:53 +0100
committerPhillip Lougher <phillip@squashfs.org.uk>2013-09-06 04:57:52 +0100
commit9dbc41d5d371cb10099c8182552f3915920e69b6 (patch)
treefa549b1308a13d40f8de494889dc9d315eea894b /fs/squashfs/super.c
parente0125262a2f5cefbfb3804117f8ab16e9ba13e29 (diff)
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 <phillip@squashfs.org.uk>
Diffstat (limited to 'fs/squashfs/super.c')
0 files changed, 0 insertions, 0 deletions