Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54431
b: refs/heads/master
c: 11d9c2f
h: refs/heads/master
i:
  54429: dd8a4e7
  54427: 83ff617
  54423: a152366
  54415: 9f42cee
  54399: d2455b3
v: v3
  • Loading branch information
Dave Airlie committed Mar 11, 2007
1 parent 72cd8fb commit b6a936d
Show file tree
Hide file tree
Showing 2 changed files with 5 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: 54ba2f76e281286cf4b2860ed8354602eab4c1ef
refs/heads/master: 11d9c2fd0ae74647ea2b52f9bdfa7a920b48d1f1
6 changes: 4 additions & 2 deletions trunk/drivers/char/drm/drm_fops.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ static int drm_setup(drm_device_t * dev)
drm_local_map_t *map;
int i;
int ret;
u32 sareapage;

if (dev->driver->firstopen) {
ret = dev->driver->firstopen(dev);
Expand All @@ -56,7 +57,8 @@ static int drm_setup(drm_device_t * dev)
dev->magicfree.next = NULL;

/* prebuild the SAREA */
i = drm_addmap(dev, 0, SAREA_MAX, _DRM_SHM, _DRM_CONTAINS_LOCK, &map);
sareapage = max(SAREA_MAX, PAGE_SIZE);
i = drm_addmap(dev, 0, sareapage, _DRM_SHM, _DRM_CONTAINS_LOCK, &map);
if (i != 0)
return i;

Expand Down Expand Up @@ -84,7 +86,7 @@ static int drm_setup(drm_device_t * dev)
INIT_LIST_HEAD(&dev->ctxlist->head);

dev->vmalist = NULL;
dev->sigdata.lock = dev->lock.hw_lock = NULL;
dev->sigdata.lock = NULL;
init_waitqueue_head(&dev->lock.lock_queue);
dev->queue_count = 0;
dev->queue_reserved = 0;
Expand Down

0 comments on commit b6a936d

Please sign in to comment.