Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218276
b: refs/heads/master
c: f608613
h: refs/heads/master
v: v3
  • Loading branch information
Francisco Jerez authored and Dave Airlie committed Oct 19, 2010
1 parent 1a2ddb6 commit 9889d81
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: 965d38074e6eae71757a8baf9a348139e1e6894d
refs/heads/master: f6086134d0b17b2c37f537a5429a919b3d2cced8
6 changes: 4 additions & 2 deletions trunk/drivers/char/agp/amd-k7-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ static int amd_insert_memory(struct agp_memory *mem, off_t pg_start, int type)

num_entries = A_SIZE_LVL2(agp_bridge->current_size)->num_entries;

if (type != 0 || mem->type != 0)
if (type != mem->type ||
agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type))
return -EINVAL;

if ((pg_start + mem->page_count) > num_entries)
Expand Down Expand Up @@ -348,7 +349,8 @@ static int amd_remove_memory(struct agp_memory *mem, off_t pg_start, int type)
unsigned long __iomem *cur_gatt;
unsigned long addr;

if (type != 0 || mem->type != 0)
if (type != mem->type ||
agp_bridge->driver->agp_type_to_mask_type(agp_bridge, type))
return -EINVAL;

for (i = pg_start; i < (mem->page_count + pg_start); i++) {
Expand Down

0 comments on commit 9889d81

Please sign in to comment.