projects
/
project
/
fstools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libfstools: fix multiple volume_identify usages with the same volume
[project/fstools.git]
/
libfstools
/
mtd.c
diff --git
a/libfstools/mtd.c
b/libfstools/mtd.c
index
a1811c3
..
2603a15
100644
(file)
--- a/
libfstools/mtd.c
+++ b/
libfstools/mtd.c
@@
-76,8
+76,10
@@
static int mtd_volume_load(struct mtd_volume *p)
struct mtd_info_user mtdInfo;
struct erase_info_user mtdLockInfo;
- if (p->fd)
+ if (p->fd) {
+ lseek(p->fd, 0, SEEK_SET);
return 0;
+ }
if (!p->chr)
return -1;