Fix a typo in console_steal().
authorKeir Fraser <keir@xensource.com>
Thu, 8 Feb 2007 17:15:38 +0000 (17:15 +0000)
committerKeir Fraser <keir@xensource.com>
Thu, 8 Feb 2007 17:15:38 +0000 (17:15 +0000)
Signed-off-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/char/console.c

index 01eda8a06dd0c3da1be62c53fd07bf6a1f804b78..7eea5b2b4e2444f926940ae8bc6704b1b4509a30 100644 (file)
@@ -223,7 +223,7 @@ int console_steal(int handle, void (*fn)(const char *))
     if ( (handle == -1) || (handle != sercon_handle) )
         return 0;
 
-    if ( serial_steal_fn == NULL )
+    if ( serial_steal_fn != NULL )
         return -EBUSY;
 
     serial_steal_fn = fn;