projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stat: don't add duplicate clat entries for json
[fio.git]
/
oslib
/
libmtd.c
diff --git
a/oslib/libmtd.c
b/oslib/libmtd.c
index 5b22d6a8abb453cfd015be3f3f1ea8aef35d4e82..385b9d2fa6b376b79ca06aa9690b9167aada2cbc 100644
(file)
--- a/
oslib/libmtd.c
+++ b/
oslib/libmtd.c
@@
-14,7
+14,7
@@
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
- * Foundation, Inc.,
675 Mass Ave, Cambridge, MA 02139
, USA.
+ * Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
, USA.
*
* Author: Artem Bityutskiy
*
*
* Author: Artem Bityutskiy
*
@@
-1002,7
+1002,6
@@
int mtd_torture(libmtd_t desc, const struct mtd_dev_info *mtd, int fd, int eb)
}
}
}
}
- err = 0;
normsg("PEB %d passed torture test, do not mark it a bad", eb);
out:
normsg("PEB %d passed torture test, do not mark it a bad", eb);
out:
@@
-1116,6
+1115,7
@@
static int legacy_auto_oob_layout(const struct mtd_dev_info *mtd, int fd,
len = mtd->oob_size - start;
memcpy(oob + start, tmp_buf + start, len);
}
len = mtd->oob_size - start;
memcpy(oob + start, tmp_buf + start, len);
}
+ free(tmp_buf);
return 0;
}
return 0;
}