projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: fat: get_contents() always returns -1 for errors
[oweals/u-boot.git]
/
fs
/
fat
/
fat.c
diff --git
a/fs/fat/fat.c
b/fs/fat/fat.c
index 2a5300d5019f7e8346ee949df4e5bc2450977826..9e1b842dac6b9802960b19bb180a90e894679159 100644
(file)
--- a/
fs/fat/fat.c
+++ b/
fs/fat/fat.c
@@
-364,7
+364,7
@@
static int get_contents(fsdata *mydata, dir_entry *dentptr, loff_t pos,
tmp_buffer = malloc_cache_aligned(actsize);
if (!tmp_buffer) {
debug("Error: allocating buffer\n");
- return -
ENOMEM
;
+ return -
1
;
}
if (get_cluster(mydata, curclust, tmp_buffer, actsize) != 0) {