projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76e9189
)
matroxfb: replace kmalloc and memset with kzalloc.
author
Alexandru Juncu
<alexj@rosedu.org>
Fri, 12 Jul 2013 14:00:18 +0000
(17:00 +0300)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Fri, 26 Jul 2013 08:35:17 +0000
(11:35 +0300)
Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/matrox/matroxfb_base.c
patch
|
blob
|
history
diff --git
a/drivers/video/matrox/matroxfb_base.c
b/drivers/video/matrox/matroxfb_base.c
index 401a56e250bd40e3ba484c403ff1975357e202e9..245652911650df88bf5a3d1c05e99599e0e420a2 100644
(file)
--- a/
drivers/video/matrox/matroxfb_base.c
+++ b/
drivers/video/matrox/matroxfb_base.c
@@
-2029,10
+2029,9
@@
static int matroxfb_probe(struct pci_dev* pdev, const struct pci_device_id* dumm
return -1;
}
- minfo = k
m
alloc(sizeof(*minfo), GFP_KERNEL);
+ minfo = k
z
alloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo)
return -1;
- memset(minfo, 0, sizeof(*minfo));
minfo->pcidev = pdev;
minfo->dead = 0;