Skip to contentSkip to conversation

libertas: down_interruptible() can return -EINTR, not EINTR

PATCH roel kluin 1 participant 1 message Dec 31, 2010 Networking drivers (wireless)

lore
Share & tools
lore

roel kluin

author
#0 lore raw

Fix test in lbs_spi_thread(). down_interruptible() can return -EINTR, but not EINTR.

---
 drivers/net/wireless/libertas/if_spi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/libertas/if_spi.c +1 -1
index ecd4d04..0060023 100644
@@ -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. */