mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 07:28:42 +02:00
intel: use kzalloc
This commit is contained in:
parent
8690ad8ae0
commit
8e4c61e526
1 changed files with 1 additions and 1 deletions
|
|
@ -1491,7 +1491,7 @@ struct drm_framebuffer *intel_user_framebuffer_create(struct drm_device *dev,
|
|||
{
|
||||
struct intel_framebuffer *intel_fb;
|
||||
|
||||
intel_fb = kmalloc(sizeof(*intel_fb), GFP_KERNEL);
|
||||
intel_fb = kzalloc(sizeof(*intel_fb), GFP_KERNEL);
|
||||
if (!intel_fb)
|
||||
return NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue