[libvirt] [PATCH] Bug Fix: Fix getPhysfnDev to always allocate memory for physfndev on success

Eric Blake eblake at redhat.com
Fri Oct 14 22:15:44 UTC 2011


On 10/14/2011 04:12 PM, Roopa Prabhu wrote:
> From: Roopa Prabhu<roprabhu at cisco.com>
>
> getPhysfnDev was conditionally allocating memory for physfndev on success.
> Recently added unconditional free in the caller of getPhysfnDev
> can result in a crash. So fix getPhysfnDev to unconditionally allocate
> memory for physfndev on success
>
> Signed-off-by: Roopa Prabhu<roprabhu at cisco.com>
> Acked-by: Eric Blake<eblake at redhat.com>
> ---
>   src/util/macvtap.c |    6 +++++-
>   1 files changed, 5 insertions(+), 1 deletions(-)

Already pushed.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list