Merge branch 'for-linus' of git://git.infradead.org/users/eparis/notify
[cascardo/linux.git] / drivers / char / hvc_xen.c
index 1f7e13a..3740e32 100644 (file)
@@ -74,7 +74,8 @@ static int __write_console(const char *data, int len)
        wmb();                  /* write ring before updating pointer */
        intf->out_prod = prod;
 
-       notify_daemon();
+       if (sent)
+               notify_daemon();
        return sent;
 }