ChangeSet 1.1982.158.14, 2005/03/12 21:43:53-08:00, [EMAIL PROTECTED]

        [PATCH] PCI: fix hotplug double free
        
        [PATCH] PCI: fix hotplug double free
        
        With the brackets missed out func could be freed twice.
        
        Found by Coverity tool
        
        Signed-off-by: Alexander Nyberg <[EMAIL PROTECTED]>
        Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>



 pciehp_ctrl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


diff -Nru a/drivers/pci/hotplug/pciehp_ctrl.c 
b/drivers/pci/hotplug/pciehp_ctrl.c
--- a/drivers/pci/hotplug/pciehp_ctrl.c 2005-03-14 23:08:59 -08:00
+++ b/drivers/pci/hotplug/pciehp_ctrl.c 2005-03-14 23:08:59 -08:00
@@ -1354,10 +1354,11 @@
                                dbg("PCI Bridge Hot-Remove 
s:b:d:f(%02x:%02x:%02x:%02x)\n", 
                                        ctrl->seg, func->bus, func->device, 
func->function);
                                bridge_slot_remove(func);
-                       } else
+                       } else {
                                dbg("PCI Function Hot-Remove 
s:b:d:f(%02x:%02x:%02x:%02x)\n", 
                                        ctrl->seg, func->bus, func->device, 
func->function);
                                slot_remove(func);
+                       }
 
                        func = pciehp_slot_find(ctrl->slot_bus, device, 0);
                }
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to