Re: [KVM PATCH v3 1/3] kvm: fix potential coalesced_mmio leak onshutdown

From: Chris Wright
Date: Mon Jun 01 2009 - 13:06:41 EST


* Gregory Haskins (ghaskins@xxxxxxxxxx) wrote:
> It would appear that we are invoking kfree() on the wrong pointer in the
> destructor for the coalesced_mmio device. This could result in a potential
> leak during shutdown. This works today because the kvm_io_device is
> the first element of the private structure, but this could change in
> the future, so lets clean this up.
>
> Signed-off-by: Gregory Haskins <ghaskins@xxxxxxxxxx>

Acked-by: Chris Wright <chrisw@xxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/