* libertas: down_interruptible() can return -EINTR, not EINTR
@ 2010-12-31 15:05 roel kluin
0 siblings, 0 replies; only message in thread
From: roel kluin @ 2010-12-31 15:05 UTC (permalink / raw)
To: Dan Williams, libertas-dev, Andrew Morton, LKML
Fix test in lbs_spi_thread(). down_interruptible() can return -EINTR, but not EINTR.
Signed-off-by: Roel Kluin <roel.kluin@gmail.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. */
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-31 15:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-31 15:05 libertas: down_interruptible() can return -EINTR, not EINTR roel kluin
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.