mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-02 08:54:36 +07:00
drm/omap: use kzalloc in sita_init()
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com> Link: http://patchwork.freedesktop.org/patch/msgid/1450178476-26284-6-git-send-email-boris.brezillon@free-electrons.com Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
d4b20e4dcb
commit
07a6dc19a3
@ -87,14 +87,11 @@ struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr)
|
||||
if (width == 0 || height == 0)
|
||||
return NULL;
|
||||
|
||||
tcm = kmalloc(sizeof(*tcm), GFP_KERNEL);
|
||||
pvt = kmalloc(sizeof(*pvt), GFP_KERNEL);
|
||||
tcm = kzalloc(sizeof(*tcm), GFP_KERNEL);
|
||||
pvt = kzalloc(sizeof(*pvt), GFP_KERNEL);
|
||||
if (!tcm || !pvt)
|
||||
goto error;
|
||||
|
||||
memset(tcm, 0, sizeof(*tcm));
|
||||
memset(pvt, 0, sizeof(*pvt));
|
||||
|
||||
/* Updating the pointers to SiTA implementation APIs */
|
||||
tcm->height = height;
|
||||
tcm->width = width;
|
||||
|
Loading…
Reference in New Issue
Block a user