Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56881
b: refs/heads/master
c: 3c6df2a
h: refs/heads/master
i:
  56879: e98c5e8
v: v3
  • Loading branch information
Ben Collins authored and Linus Torvalds committed May 24, 2007
1 parent cbbb8aa commit b8dfa56
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6754bb4de94098a0aaa23a600f0edb9a9454c252
refs/heads/master: 3c6df2a9177c010bf811c361149069e4bfd9bb11
7 changes: 6 additions & 1 deletion trunk/arch/x86_64/kernel/k8.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ int cache_k8_northbridges(void)
{
int i;
struct pci_dev *dev;

if (num_k8_northbridges)
return 0;

num_k8_northbridges = 0;
dev = NULL;
while ((dev = next_k8_northbridge(dev)) != NULL)
num_k8_northbridges++;
Expand All @@ -52,6 +52,11 @@ int cache_k8_northbridges(void)
if (!k8_northbridges)
return -ENOMEM;

if (!num_k8_northbridges) {
k8_northbridges[0] = NULL;
return 0;
}

flush_words = kmalloc(num_k8_northbridges * sizeof(u32), GFP_KERNEL);
if (!flush_words) {
kfree(k8_northbridges);
Expand Down

0 comments on commit b8dfa56

Please sign in to comment.