git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'omap-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind...
[pandora-kernel.git]
/
drivers
/
mtd
/
tests
/
mtd_readtest.c
diff --git
a/drivers/mtd/tests/mtd_readtest.c
b/drivers/mtd/tests/mtd_readtest.c
index
7107fcc
..
afe71aa
100644
(file)
--- a/
drivers/mtd/tests/mtd_readtest.c
+++ b/
drivers/mtd/tests/mtd_readtest.c
@@
-141,12
+141,11
@@
static int scan_for_bad_eraseblocks(void)
{
int i, bad = 0;
{
int i, bad = 0;
- bbt = k
m
alloc(ebcnt, GFP_KERNEL);
+ bbt = k
z
alloc(ebcnt, GFP_KERNEL);
if (!bbt) {
printk(PRINT_PREF "error: cannot allocate memory\n");
return -ENOMEM;
}
if (!bbt) {
printk(PRINT_PREF "error: cannot allocate memory\n");
return -ENOMEM;
}
- memset(bbt, 0 , ebcnt);
/* NOR flash does not implement block_isbad */
if (mtd->block_isbad == NULL)
/* NOR flash does not implement block_isbad */
if (mtd->block_isbad == NULL)