summaryrefslogtreecommitdiff
path: root/sys/dev/pci/drm/drm_drawable.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/pci/drm/drm_drawable.c')
-rw-r--r--sys/dev/pci/drm/drm_drawable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_drawable.c b/sys/dev/pci/drm/drm_drawable.c
index 2c963d6ced1..06225dc6d2b 100644
--- a/sys/dev/pci/drm/drm_drawable.c
+++ b/sys/dev/pci/drm/drm_drawable.c
@@ -154,8 +154,8 @@ drm_update_draw(struct drm_device *dev, void *data, struct drm_file *file_priv)
return 0;
}
if (info->rects == NULL) {
- info->rects = drm_calloc(sizeof(*info->rects),
- update->num, DRM_MEM_DRAWABLE);
+ info->rects = drm_calloc(update->num,
+ sizeof(*info->rects), DRM_MEM_DRAWABLE);
if (info->rects == NULL) {
DRM_SPINUNLOCK(&dev->drw_lock);
return ENOMEM;