Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53362
b: refs/heads/master
c: 31be758
h: refs/heads/master
v: v3
  • Loading branch information
Linas Vepstas authored and Greg Kroah-Hartman committed May 3, 2007
1 parent 7bf32a1 commit ba6f3a9
Show file tree
Hide file tree
Showing 4 changed files with 6 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: fa1891596ca252e48e8803738fd8ead5b3082217
refs/heads/master: 31be7586d1122538747519d786408f142f59dd46
5 changes: 5 additions & 0 deletions trunk/drivers/pci/hotplug/rpaphp_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,15 @@ int rpaphp_add_slot(struct device_node *dn)
indexes[i + 1], name, type);

retval = rpaphp_register_pci_slot(slot);
if (retval)
dealloc_slot_struct(slot);

name += strlen(name) + 1;
type += strlen(type) + 1;
}
dbg("%s - Exit: rc[%d]\n", __FUNCTION__, retval);

/* XXX FIXME: reports a failure only if last entry in loop failed */
return retval;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/pci/hotplug/rpaphp_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ static int setup_pci_slot(struct slot *slot)
}
return 0;
exit_rc:
dealloc_slot_struct(slot);
return -EINVAL;
}

Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/pci/hotplug/rpaphp_slot.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ int rpaphp_register_slot(struct slot *slot)
sysfs_fail:
pci_hp_deregister(php_slot);
register_fail:
rpaphp_release_slot(php_slot);
return retval;
}

Expand Down

0 comments on commit ba6f3a9

Please sign in to comment.