projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93ee7a9
)
mtd: convert vmalloc/memset to vzalloc
author
Joe Perches
<joe@perches.com>
Sat, 28 May 2011 17:36:29 +0000
(10:36 -0700)
committer
Artem Bityutskiy
<artem.bityutskiy@intel.com>
Mon, 15 Aug 2011 10:26:37 +0000
(13:26 +0300)
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/mtdswap.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/mtdswap.c
b/drivers/mtd/mtdswap.c
index
fd78853
..
5e5423b
100644
(file)
--- a/
drivers/mtd/mtdswap.c
+++ b/
drivers/mtd/mtdswap.c
@@
-1374,11
+1374,10
@@
static int mtdswap_init(struct mtdswap_dev *d, unsigned int eblocks,
goto revmap_fail;
eblk_bytes = sizeof(struct swap_eb)*d->eblks;
- d->eb_data = v
m
alloc(eblk_bytes);
+ d->eb_data = v
z
alloc(eblk_bytes);
if (!d->eb_data)
goto eb_data_fail;
- memset(d->eb_data, 0, eblk_bytes);
for (i = 0; i < pages; i++)
d->page_data[i] = BLOCK_UNDEF;