Commit 07a6dc19 authored by Rasmus Villemoes's avatar Rasmus Villemoes Committed by Daniel Vetter
parent d4b20e4d
...@@ -87,14 +87,11 @@ struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr) ...@@ -87,14 +87,11 @@ struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr)
if (width == 0 || height == 0) if (width == 0 || height == 0)
return NULL; return NULL;
tcm = kmalloc(sizeof(*tcm), GFP_KERNEL); tcm = kzalloc(sizeof(*tcm), GFP_KERNEL);
pvt = kmalloc(sizeof(*pvt), GFP_KERNEL); pvt = kzalloc(sizeof(*pvt), GFP_KERNEL);
if (!tcm || !pvt) if (!tcm || !pvt)
goto error; goto error;
memset(tcm, 0, sizeof(*tcm));
memset(pvt, 0, sizeof(*pvt));
/* Updating the pointers to SiTA implementation APIs */ /* Updating the pointers to SiTA implementation APIs */
tcm->height = height; tcm->height = height;
tcm->width = width; tcm->width = width;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment