Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68795
b: refs/heads/master
c: bdc3e60
h: refs/heads/master
i:
  68793: 1a0b1c0
  68791: 02c1549
v: v3
  • Loading branch information
Jesper Juhl authored and Dave Airlie committed Oct 15, 2007
1 parent 81c823c commit 3e41be7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: a2721e998ede079db10f65e4b42310f79dc8f135
refs/heads/master: bdc3e603cda3433c2ccc2069d28f7f3cd319cfc6
9 changes: 2 additions & 7 deletions trunk/drivers/char/agp/amd-k7-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,21 +100,16 @@ static int amd_create_gatt_pages(int nr_tables)

for (i = 0; i < nr_tables; i++) {
entry = kzalloc(sizeof(struct amd_page_map), GFP_KERNEL);
tables[i] = entry;
if (entry == NULL) {
while (i > 0) {
kfree(tables[i-1]);
i--;
}
kfree(tables);
retval = -ENOMEM;
break;
}
tables[i] = entry;
retval = amd_create_page_map(entry);
if (retval != 0)
break;
}
amd_irongate_private.num_tables = nr_tables;
amd_irongate_private.num_tables = i;
amd_irongate_private.gatt_pages = tables;

if (retval != 0)
Expand Down

0 comments on commit 3e41be7

Please sign in to comment.