]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/serial/68360serial.c
drivers/video/uvesafb.c: fix error-path memory leak
[linux-2.6-omap-h63xx.git] / drivers / serial / 68360serial.c
index 2aa6bfe8fdb3d2a0fdfb8d685a065ff7815a4e6b..f5946360187448ea65fd7996dbeb28ccb71279a0 100644 (file)
@@ -51,6 +51,7 @@ extern int  kgdb_output_string (const char* s, unsigned int count);
 
 /* #ifdef CONFIG_SERIAL_CONSOLE */ /* This seems to be a post 2.0 thing - mles */
 #include <linux/console.h>
+#include <linux/jiffies.h>
 
 /* this defines the index into rs_table for the port to use
  */
@@ -1729,7 +1730,7 @@ static void rs_360_wait_until_sent(struct tty_struct *tty, int timeout)
                msleep_interruptible(jiffies_to_msecs(char_time));
                if (signal_pending(current))
                        break;
-               if (timeout && ((orig_jiffies + timeout) < jiffies))
+               if (timeout && (time_after(jiffies, orig_jiffies + timeout)))
                        break;
                /* The 'tx_cur' is really the next buffer to send.  We
                 * have to back up to the previous BD and wait for it