projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
exfat: fix unexpected EOF while reading dir
[linux-2.6-microblaze.git]
/
fs
/
exfat
/
dir.c
diff --git
a/fs/exfat/dir.c
b/fs/exfat/dir.c
index
1dfa67f
..
1122bee
100644
(file)
--- a/
fs/exfat/dir.c
+++ b/
fs/exfat/dir.c
@@
-234,10
+234,7
@@
static int exfat_iterate(struct file *file, struct dir_context *ctx)
fake_offset = 1;
}
- if (cpos & (DENTRY_SIZE - 1)) {
- err = -ENOENT;
- goto unlock;
- }
+ cpos = round_up(cpos, DENTRY_SIZE);
/* name buffer should be allocated before use */
err = exfat_alloc_namebuf(nb);