Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294695
b: refs/heads/master
c: ef62dfe
h: refs/heads/master
i:
  294693: f8a9cd0
  294691: d60dd1c
  294687: ba17b23
v: v3
  • Loading branch information
Yinghai Lu authored and Jesse Barnes committed Feb 14, 2012
1 parent 35c8f47 commit 3c8793c
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: a4ac9fea016fc5c09227eb479bd35e34978323a4
refs/heads/master: ef62dfefa93bc90f1cb0f4a55c2d86b3269b3f92
6 changes: 4 additions & 2 deletions trunk/drivers/pci/setup-bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void pci_realloc(void)
* @add_size: additional size to be optionally added
* to the resource
*/
static void add_to_list(struct resource_list_x *head,
static int add_to_list(struct resource_list_x *head,
struct pci_dev *dev, struct resource *res,
resource_size_t add_size, resource_size_t min_align)
{
Expand All @@ -75,7 +75,7 @@ static void add_to_list(struct resource_list_x *head,
tmp = kmalloc(sizeof(*tmp), GFP_KERNEL);
if (!tmp) {
pr_warning("add_to_list: kmalloc() failed!\n");
return;
return -ENOMEM;
}

tmp->next = ln;
Expand All @@ -87,6 +87,8 @@ static void add_to_list(struct resource_list_x *head,
tmp->add_size = add_size;
tmp->min_align = min_align;
list->next = tmp;

return 0;
}

static void add_to_failed_list(struct resource_list_x *head,
Expand Down

0 comments on commit 3c8793c

Please sign in to comment.