projects
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8bf6d94
)
fat: fix setting wrong file name
author
Donggeun Kim
<dg77.kim@samsung.com>
Mon, 29 Nov 2010 05:40:55 +0000
(14:40 +0900)
committer
Donggeun Kim
<dg77.kim@samsung.com>
Mon, 29 Nov 2010 05:40:55 +0000
(14:40 +0900)
When file_fat_write function is called multiple times,
the file names are not set correctly since the second function call.
This patch fix the bug.
Signed-off-by: Donggeun Kim <dg77.kim@samsung.com>
fs/fat/fat.c
patch
|
blob
|
history
diff --git
a/fs/fat/fat.c
b/fs/fat/fat.c
index
644aa50
..
d9044b2
100644
(file)
--- a/
fs/fat/fat.c
+++ b/
fs/fat/fat.c
@@
-708,6
+708,7
@@
fill_dir_slot (dir_entry **dentptr, const char *l_name)
int idx = 0, ret;
do {
+ memset(slotptr, 0x00, sizeof(dir_slot));
ret = str2slot(slotptr, l_name, &idx);
slotptr->id = ++counter;
slotptr->attr = ATTR_VFAT;