Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40303
b: refs/heads/master
c: 85abb3f
h: refs/heads/master
i:
  40301: 0ff3660
  40299: d450dfe
  40295: 92cc009
  40287: c317b24
v: v3
  • Loading branch information
Amol Lad authored and Dave Airlie committed Oct 25, 2006
1 parent e1b2816 commit 1785f96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24f73c92a990ecd3d1bb846267780a264d830065
refs/heads/master: 85abb3f95010b277a6efbc9b8031a7854af87e10
4 changes: 4 additions & 0 deletions trunk/drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,

list = drm_alloc(sizeof(*list), DRM_MEM_MAPS);
if (!list) {
if (map->type == _DRM_REGISTERS)
drm_ioremapfree(map->handle, map->size, dev);
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
return -EINVAL;
}
Expand All @@ -252,6 +254,8 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,
map->offset;
ret = drm_map_handle(dev, &list->hash, user_token, 0);
if (ret) {
if (map->type == _DRM_REGISTERS)
drm_ioremapfree(map->handle, map->size, dev);
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
drm_free(list, sizeof(*list), DRM_MEM_MAPS);
mutex_unlock(&dev->struct_mutex);
Expand Down

0 comments on commit 1785f96

Please sign in to comment.