Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 264798
b: refs/heads/master
c: 8e03bd6
h: refs/heads/master
v: v3
  • Loading branch information
Joe Perches authored and Jiri Kosina committed Sep 15, 2011
1 parent 52a6f39 commit 5962640
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57f3224c3f838844cdae5e4a9d63e03152013f9a
refs/heads/master: 8e03bd6525d3281068519d5f6059cdcc5a67af66
3 changes: 1 addition & 2 deletions trunk/drivers/char/agp/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/char/raw.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,12 @@ static int __init raw_init(void)
max_raw_minors = MAX_RAW_MINORS;
}

raw_devices = vmalloc(sizeof(struct raw_device_data) * max_raw_minors);
raw_devices = vzalloc(sizeof(struct raw_device_data) * max_raw_minors);
if (!raw_devices) {
printk(KERN_ERR "Not enough memory for raw device structures\n");
ret = -ENOMEM;
goto error;
}
memset(raw_devices, 0, sizeof(struct raw_device_data) * max_raw_minors);

ret = register_chrdev_region(dev, max_raw_minors, "raw");
if (ret)
Expand Down

0 comments on commit 5962640

Please sign in to comment.