[<prev] [next>] [day] [month] [year] [list]
Message-ID: <4D1DF11D.7090201@gmail.com>
Date: Fri, 31 Dec 2010 16:05:01 +0100
From: roel kluin <roel.kluin@...il.com>
To: Dan Williams <dcbw@...hat.com>, libertas-dev@...ts.infradead.org,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>
Subject: libertas: down_interruptible() can return -EINTR, not EINTR
Fix test in lbs_spi_thread(). down_interruptible() can return -EINTR, but not EINTR.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
drivers/net/wireless/libertas/if_spi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/wireless/libertas/if_spi.c b/drivers/net/wireless/libertas/if_spi.c
index ecd4d04..0060023 100644
--- a/drivers/net/wireless/libertas/if_spi.c
+++ b/drivers/net/wireless/libertas/if_spi.c
@@ -784,7 +784,7 @@ static int lbs_spi_thread(void *data)
up(&card->spi_thread_terminated);
do_exit(0);
}
- } while (err == EINTR);
+ } while (err == -EINTR);
/* Read the host interrupt status register to see what we
* can do. */
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists