Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117236
b: refs/heads/master
c: 786225e
h: refs/heads/master
v: v3
  • Loading branch information
Zhenyu Wang authored and Dave Airlie committed Oct 23, 2008
1 parent 8a9538a commit f6cda9f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: d1ed629f44b3a4108d5c445971535f05f441fce7
refs/heads/master: 786225eb2f4e55b5dda3cf8c62a145e824aae199
7 changes: 5 additions & 2 deletions trunk/drivers/gpu/drm/drm_drawable.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,14 @@ int drm_rmdraw(struct drm_device *dev, void *data, struct drm_file *file_priv)
{
struct drm_draw *draw = data;
unsigned long irqflags;
struct drm_drawable_info *info;

spin_lock_irqsave(&dev->drw_lock, irqflags);

drm_free(drm_get_drawable_info(dev, draw->handle),
sizeof(struct drm_drawable_info), DRM_MEM_BUFS);
info = drm_get_drawable_info(dev, draw->handle);
drm_free(info->rects, info->num_rects * sizeof(struct drm_clip_rect),
DRM_MEM_BUFS);
drm_free(info, sizeof(struct drm_drawable_info), DRM_MEM_BUFS);

idr_remove(&dev->drw_idr, draw->handle);

Expand Down

0 comments on commit f6cda9f

Please sign in to comment.