PCI: rpaphp: match up alloc and free in same routine
The routine that called an alloc should be the same routine that calles the mathcing free, if anything in the middle failed. Signed-off-by: Linas Vepstas <linas@austin.ibm.com> Cc: John Rose <johnrose@austin.ibm.com> Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
fa1891596c
commit
31be7586d1
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user