Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117234
b: refs/heads/master
c: 8638427
h: refs/heads/master
v: v3
  • Loading branch information
Zhenyu Wang authored and Dave Airlie committed Oct 23, 2008
1 parent 09a6751 commit 9be1bed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e9d21d7f5ae1e625f3687d88bb50b00478c533ad
refs/heads/master: 863842736fb4571b22e0f7f4696bf13eeec57166
4 changes: 3 additions & 1 deletion trunk/drivers/gpu/drm/drm_drawable.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ int drm_update_drawable_info(struct drm_device *dev, void *data, struct drm_file

switch (update->type) {
case DRM_DRAWABLE_CLIPRECTS:
if (update->num != info->num_rects) {
if (update->num == 0)
rects = NULL;
else if (update->num != info->num_rects) {
rects = drm_alloc(update->num * sizeof(struct drm_clip_rect),
DRM_MEM_BUFS);
} else
Expand Down

0 comments on commit 9be1bed

Please sign in to comment.