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

Signed-off-by: Joe Perches <joe@perches.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
Joe Perches
2010-10-31 22:33:53 +00:00
committed by Dave Airlie
parent 0ea75e2335
commit 85b54e0c19
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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;