summaryrefslogtreecommitdiffstats
path: root/drivers/char/agp/backend.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-05-28 10:36:25 -0700
committerJiri Kosina <jkosina@suse.cz>2011-09-15 13:55:03 +0200
commit8e03bd6525d3281068519d5f6059cdcc5a67af66 (patch)
tree12e4cecbdef7eb38c8ff4406774008509a70fc47 /drivers/char/agp/backend.c
parent57f3224c3f838844cdae5e4a9d63e03152013f9a (diff)
downloadop-kernel-dev-8e03bd6525d3281068519d5f6059cdcc5a67af66.zip
op-kernel-dev-8e03bd6525d3281068519d5f6059cdcc5a67af66.tar.gz
char: Convert vmalloc/memset to vzalloc
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/char/agp/backend.c')
-rw-r--r--drivers/char/agp/backend.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/char/agp/backend.c b/drivers/char/agp/backend.c
index f27d0d0..4b71647 100644
--- a/drivers/char/agp/backend.c
+++ b/drivers/char/agp/backend.c
@@ -171,7 +171,7 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
}
got_gatt = 1;
- bridge->key_list = vmalloc(PAGE_SIZE * 4);
+ bridge->key_list = vzalloc(PAGE_SIZE * 4);
if (bridge->key_list == NULL) {
dev_err(&bridge->dev->dev,
"can't allocate memory for key lists\n");
@@ -181,7 +181,6 @@ static int agp_backend_initialize(struct agp_bridge_data *bridge)
got_keylist = 1;
/* FIXME vmalloc'd memory not guaranteed contiguous */
- memset(bridge->key_list, 0, PAGE_SIZE * 4);
if (bridge->driver->configure()) {
dev_err(&bridge->dev->dev, "error configuring host chipset\n");
OpenPOWER on IntegriCloud