* [PATCH] matroxfb: replace kmalloc and memset with kzalloc.
@ 2013-07-12 14:00 Alexandru Juncu
2013-07-26 8:36 ` Tomi Valkeinen
0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Juncu @ 2013-07-12 14:00 UTC (permalink / raw)
To: plagnioj; +Cc: tomi.valkeinen, alexj, linux-fbdev, linux-kernel
Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
---
drivers/video/matrox/matroxfb_base.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
index 401a56e..2456529 100644
--- 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 = kmalloc(sizeof(*minfo), GFP_KERNEL);
+ minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
if (!minfo)
return -1;
- memset(minfo, 0, sizeof(*minfo));
minfo->pcidev = pdev;
minfo->dead = 0;
--
1.8.1.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] matroxfb: replace kmalloc and memset with kzalloc.
2013-07-12 14:00 [PATCH] matroxfb: replace kmalloc and memset with kzalloc Alexandru Juncu
@ 2013-07-26 8:36 ` Tomi Valkeinen
0 siblings, 0 replies; 2+ messages in thread
From: Tomi Valkeinen @ 2013-07-26 8:36 UTC (permalink / raw)
To: Alexandru Juncu; +Cc: plagnioj, linux-fbdev, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 860 bytes --]
On 12/07/13 17:00, Alexandru Juncu wrote:
> Signed-off-by: Alexandru Juncu <alexj@rosedu.org>
> ---
> drivers/video/matrox/matroxfb_base.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/video/matrox/matroxfb_base.c b/drivers/video/matrox/matroxfb_base.c
> index 401a56e..2456529 100644
> --- 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 = kmalloc(sizeof(*minfo), GFP_KERNEL);
> + minfo = kzalloc(sizeof(*minfo), GFP_KERNEL);
> if (!minfo)
> return -1;
> - memset(minfo, 0, sizeof(*minfo));
>
> minfo->pcidev = pdev;
> minfo->dead = 0;
>
Thanks, I've applied this into my 3.12/fbdev branch.
Tomi
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-07-26 8:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-12 14:00 [PATCH] matroxfb: replace kmalloc and memset with kzalloc Alexandru Juncu
2013-07-26 8:36 ` Tomi Valkeinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).