Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45972
b: refs/heads/master
c: c30efba
h: refs/heads/master
v: v3
  • Loading branch information
Dave Jones committed Jan 28, 2007
1 parent d5bbdb4 commit 68876ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4b95320fc4d21b0ff2f8604305dd6c851aff6096
refs/heads/master: c30efbaeaa9297fb1a35ef952350e0c2bb7a3d47
5 changes: 5 additions & 0 deletions trunk/drivers/char/agp/amd-k7-agp.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ 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);
if (entry == NULL) {
while (i > 0) {
kfree(tables[i-1]);
i--;
}
kfree(tables);
retval = -ENOMEM;
break;
}
Expand Down

0 comments on commit 68876ad

Please sign in to comment.