qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH qom v1 1/4] sdhci: Fix misuse of qemu_free_irqs()


From: Peter Crosthwaite
Subject: [Qemu-devel] [PATCH qom v1 1/4] sdhci: Fix misuse of qemu_free_irqs()
Date: Mon, 2 Jun 2014 00:39:25 -0700

From: Andreas Färber <address@hidden>

It does a g_free() on the pointer.

Reviewed-by: Peter Crosthwaite <address@hidden>
Signed-off-by: Andreas Färber <address@hidden>
Signed-off-by: Peter Crosthwaite <address@hidden>
---

 hw/sd/sdhci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c
index e2951e6..3e13d70 100644
--- a/hw/sd/sdhci.c
+++ b/hw/sd/sdhci.c
@@ -1184,8 +1184,8 @@ static void sdhci_uninitfn(Object *obj)
     timer_free(s->insert_timer);
     timer_del(s->transfer_timer);
     timer_free(s->transfer_timer);
-    qemu_free_irqs(&s->eject_cb);
-    qemu_free_irqs(&s->ro_cb);
+    qemu_free_irq(s->eject_cb);
+    qemu_free_irq(s->ro_cb);
 
     if (s->fifo_buffer) {
         g_free(s->fifo_buffer);
-- 
2.0.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]