提交 85b54e0c 编写于 作者: J Joe Perches 提交者: Dave Airlie

drivers/gpu/drm/vmwgfx: Fix k.alloc switched arguments

Signed-off-by: NJoe Perches <joe@perches.com>
Reviewed-by: NMatt Turner <mattst88@gmail.com>
Reviewed-by: NThomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 0ea75e23
...@@ -557,7 +557,7 @@ int vmw_kms_init_legacy_display_system(struct vmw_private *dev_priv) ...@@ -557,7 +557,7 @@ int vmw_kms_init_legacy_display_system(struct vmw_private *dev_priv)
return -EINVAL; return -EINVAL;
} }
dev_priv->ldu_priv = kmalloc(GFP_KERNEL, sizeof(*dev_priv->ldu_priv)); dev_priv->ldu_priv = kmalloc(sizeof(*dev_priv->ldu_priv), GFP_KERNEL);
if (!dev_priv->ldu_priv) if (!dev_priv->ldu_priv)
return -ENOMEM; return -ENOMEM;
......
...@@ -585,7 +585,7 @@ int vmw_overlay_init(struct vmw_private *dev_priv) ...@@ -585,7 +585,7 @@ int vmw_overlay_init(struct vmw_private *dev_priv)
return -ENOSYS; return -ENOSYS;
} }
overlay = kmalloc(GFP_KERNEL, sizeof(*overlay)); overlay = kmalloc(sizeof(*overlay), GFP_KERNEL);
if (!overlay) if (!overlay)
return -ENOMEM; return -ENOMEM;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册