Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18261
b: refs/heads/master
c: 8d2ea62
h: refs/heads/master
i:
  18259: 4b13d37
v: v3
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Jan 11, 2006
1 parent 8c27a2d commit eb48c40
Show file tree
Hide file tree
Showing 2 changed files with 2 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: f8e0f2905bf0a7cb5ef2baaf009f0c26f80c3056
refs/heads/master: 8d2ea6258123d7a92a1f6ec638a8cad4a0604c43
2 changes: 1 addition & 1 deletion trunk/drivers/char/drm/drm_bufs.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static int drm_addmap_core(drm_device_t * dev, unsigned int offset,
case _DRM_REGISTERS:
case _DRM_FRAME_BUFFER:
#if !defined(__sparc__) && !defined(__alpha__) && !defined(__ia64__) && !defined(__powerpc64__) && !defined(__x86_64__)
if (map->offset + map->size < map->offset ||
if (map->offset + (map->size-1) < map->offset ||
map->offset < virt_to_phys(high_memory)) {
drm_free(map, sizeof(*map), DRM_MEM_MAPS);
return -EINVAL;
Expand Down

0 comments on commit eb48c40

Please sign in to comment.