Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56776
b: refs/heads/master
c: a66aa70
h: refs/heads/master
v: v3
  • Loading branch information
Kenji Kaneshige authored and Tony Luck committed May 22, 2007
1 parent 4ebe7b8 commit 7b207a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: 6ae384884d936cb39ab20238af34689933e44525
refs/heads/master: a66aa704d6f332b001dfb0e787c92b2c61c75081
11 changes: 7 additions & 4 deletions trunk/arch/ia64/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -354,10 +354,13 @@ pci_acpi_scan_root(struct acpi_device *device, int domain, int bus)

acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window,
&windows);
controller->window = kmalloc_node(sizeof(*controller->window) * windows,
GFP_KERNEL, controller->node);
if (!controller->window)
goto out2;
if (windows) {
controller->window =
kmalloc_node(sizeof(*controller->window) * windows,
GFP_KERNEL, controller->node);
if (!controller->window)
goto out2;
}

name = kmalloc(16, GFP_KERNEL);
if (!name)
Expand Down

0 comments on commit 7b207a9

Please sign in to comment.