Patchwork sparc64: wait_event_interruptible_timeout may return -ERESTARTSYS

login
register
mail settings
Submitter roel kluin
Date March 2, 2009, 3:23 p.m.
Message ID <49ABF9FB.2040502@gmail.com>
Download mbox | patch
Permalink /patch/23937/
State Accepted
Delegated to: David Miller
Headers show

Comments

roel kluin - March 2, 2009, 3:23 p.m.
wait_event_interruptible_timeout may return -ERESTARTSYS.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
---
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
David Miller - March 4, 2009, 8:19 a.m.
From: Roel Kluin <roel.kluin@gmail.com>
Date: Mon, 02 Mar 2009 16:23:39 +0100

> wait_event_interruptible_timeout may return -ERESTARTSYS.
> 
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/drivers/sbus/char/bbc_i2c.c b/drivers/sbus/char/bbc_i2c.c
index f08e169..7e30e5f 100644
--- a/drivers/sbus/char/bbc_i2c.c
+++ b/drivers/sbus/char/bbc_i2c.c
@@ -129,7 +129,7 @@  static int wait_for_pin(struct bbc_i2c_bus *bp, u8 *status)
 	bp->waiting = 1;
 	add_wait_queue(&bp->wq, &wait);
 	while (limit-- > 0) {
-		unsigned long val;
+		long val;
 
 		val = wait_event_interruptible_timeout(
 				bp->wq,