qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH 01/14] usb-linux: Set usb_auto_timer to NULL after d


From: Hans de Goede
Subject: [Qemu-devel] [PATCH 01/14] usb-linux: Set usb_auto_timer to NULL after deleting it
Date: Tue, 31 May 2011 11:35:17 +0200

We might check for it being NULL later, if the device gets unplugged.
---
 usb-linux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/usb-linux.c b/usb-linux.c
index 4d7a31a..ea3ab5f 100644
--- a/usb-linux.c
+++ b/usb-linux.c
@@ -1675,6 +1675,7 @@ static void usb_host_auto_check(void *unused)
         /* nothing to watch */
         if (usb_auto_timer) {
             qemu_del_timer(usb_auto_timer);
+            usb_auto_timer = NULL;
         }
         return;
     }
-- 
1.7.5.1




reply via email to

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