WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

[Xen-devel] [PATCH] libxl: fix double free at get_all_assigned_devices

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] libxl: fix double free at get_all_assigned_devices
From: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
Date: 2011年9月04日 23:50:32 +0200
Cc: marmarek@xxxxxxxxxxxx
Delivery-date: 2011年9月04日 14:52:35 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.8.4
# HG changeset patch
# User Marek Marczykowski <marmarek@xxxxxxxxxxxx>
# Date 1315172996 -7200
# Node ID 4683409fac3d4fef836ce78f01f12b31f5f9e12a
# Parent 6239209bb560b4931d4d97456c82c1a5ca4bd10a
libxl: fix double free at get_all_assigned_devices
Do not free() list manually - it will be freed by libxl__free_all.
Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxx>
diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c
--- a/tools/libxl/libxl_pci.c
+++ b/tools/libxl/libxl_pci.c
@@ -469,7 +469,6 @@ static int get_all_assigned_devices(libx
 }
 
 if ( 0 == *num ) {
- free(pcidevs);
 pcidevs = NULL;
 }else{
 *list = pcidevs;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] blkfront problem in pvops kernel when barriers enabled , Marek Marczykowski
Next by Date: [Xen-devel] Re: [PATCH] libxl: fix double free at get_all_assigned_devices , Marek Marczykowski
Previous by Thread: [Xen-devel] blkfront problem in pvops kernel when barriers enabled , Marek Marczykowski
Next by Thread: [Xen-devel] Re: [PATCH] libxl: fix double free at get_all_assigned_devices , Marek Marczykowski
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /