Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91693
b: refs/heads/master
c: 029c3c1
h: refs/heads/master
i:
  91691: c6a4a6d
v: v3
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Apr 21, 2008
1 parent 8d2678a commit f08ac84
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 884525655d07fdee9245716b998ecdc45cdd8007
refs/heads/master: 029c3c133ba2c3e0e48fdfacc08324bb3fa2a571
6 changes: 5 additions & 1 deletion trunk/drivers/pci/hotplug/ibmphp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ int ibmphp_init_devno(struct slot **cur_slot)
len = (rtable->size - sizeof(struct irq_routing_table)) /
sizeof(struct irq_info);

if (!len)
if (!len) {
kfree(rtable);
return -1;
}
for (loop = 0; loop < len; loop++) {
if ((*cur_slot)->number == rtable->slots[loop].slot) {
if ((*cur_slot)->bus == rtable->slots[loop].bus) {
Expand Down Expand Up @@ -187,11 +189,13 @@ int ibmphp_init_devno(struct slot **cur_slot)
debug("rtable->slots[loop].irq[3].link = %x\n",
rtable->slots[loop].irq[3].link);
debug("end of init_devno\n");
kfree(rtable);
return 0;
}
}
}

kfree(rtable);
return -1;
}

Expand Down

0 comments on commit f08ac84

Please sign in to comment.