Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 273281
b: refs/heads/master
c: fc00015
h: refs/heads/master
i:
  273279: 902cdb2
v: v3
  • Loading branch information
Émeric Maschino authored and Tony Luck committed Aug 23, 2011
1 parent f14f4c3 commit b55737f
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: d5d4e02874537d65ed2f431d39bf2f6d2967bd1b
refs/heads/master: fc000154d7a63dee209aab1c13f2c19abdcf6b59
6 changes: 4 additions & 2 deletions trunk/drivers/char/agp/hp-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,8 @@ hp_zx1_insert_memory (struct agp_memory *mem, off_t pg_start, int type)
off_t j, io_pg_start;
int io_pg_count;

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

Expand Down Expand Up @@ -380,7 +381,8 @@ hp_zx1_remove_memory (struct agp_memory *mem, off_t pg_start, int type)
struct _hp_private *hp = &hp_private;
int i, io_pg_start, io_pg_count;

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

Expand Down

0 comments on commit b55737f

Please sign in to comment.