projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa4270d
)
vgaarb: use kzalloc in vga_arbiter_add_pci_device()
author
Rasmus Villemoes
<
[email protected]
>
Wed, 30 Sep 2015 19:57:06 +0000
(21:57 +0200)
committer
Daniel Vetter
<
[email protected]
>
Thu, 1 Oct 2015 09:25:23 +0000
(11:25 +0200)
Signed-off-by: Rasmus Villemoes <
[email protected]
>
Reviewed-by: Jani Nikula <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/vga/vgaarb.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/vga/vgaarb.c
b/drivers/gpu/vga/vgaarb.c
index a0b4334561078bbd0a2d10a1a2816a372c26f33b..3166e4bc4eb6daea9a9fcad4eb5fce4b62b1b418 100644
(file)
--- a/
drivers/gpu/vga/vgaarb.c
+++ b/
drivers/gpu/vga/vgaarb.c
@@
-531,7
+531,7
@@
static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
return false;
/* Allocate structure */
- vgadev = k
m
alloc(sizeof(struct vga_device), GFP_KERNEL);
+ vgadev = k
z
alloc(sizeof(struct vga_device), GFP_KERNEL);
if (vgadev == NULL) {
pr_err("failed to allocate pci device\n");
/*
@@
-541,8
+541,6
@@
static bool vga_arbiter_add_pci_device(struct pci_dev *pdev)
return false;
}
- memset(vgadev, 0, sizeof(*vgadev));
-
/* Take lock & check for duplicates */
spin_lock_irqsave(&vga_lock, flags);
if (vgadev_find(pdev) != NULL) {