X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=fs%2Ffat%2Fdir.c;h=140fc39e23076fe139a04827617f4d33fc1299d5;hb=52e9d9f4b32a3bec91feb76c84e37b7dcffe5040;hp=931dd28b52899cb4d55a534ed733509e653bde47;hpb=53472bc8f810d2fb507593ea03703670506a668d;p=linux-2.6-omap-h63xx.git diff --git a/fs/fat/dir.c b/fs/fat/dir.c index 931dd28b528..140fc39e230 100644 --- a/fs/fat/dir.c +++ b/fs/fat/dir.c @@ -373,9 +373,10 @@ parse_record: if (de->attr == ATTR_EXT) { int status = fat_parse_long(inode, &cpos, &bh, &de, &unicode, &nr_slots); - if (status < 0) - return status; - else if (status == PARSE_INVALID) + if (status < 0) { + err = status; + goto end_of_dir; + } else if (status == PARSE_INVALID) continue; else if (status == PARSE_NOT_LONGNAME) goto parse_record;