commit | e29e65aacbd9e628378084905cbcf62a9fa4a8cc | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Tue Aug 02 12:32:02 2011 +0100 |
committer | Alasdair G Kergon <agk@redhat.com> | Tue Aug 02 12:32:02 2011 +0100 |
tree | 279e6e87d60da82c082833205c996d7046b1a46d | |
parent | 6c9b27ab08aaf46426515b8b858ad9c60731c7a1 [diff] [blame] |
dm: use vzalloc Use vzalloc() instead of vmalloc()+memset(). Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 3909fa2..8dc6755 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c
@@ -153,9 +153,7 @@ return NULL; size = nmemb * elem_size; - addr = vmalloc(size); - if (addr) - memset(addr, 0, size); + addr = vzalloc(size); return addr; }