aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/libertas')
-rw-r--r--drivers/net/wireless/libertas/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/libertas/main.c b/drivers/net/wireless/libertas/main.c
index 2bcfa745524a..c2975c8e2f21 100644
--- a/drivers/net/wireless/libertas/main.c
+++ b/drivers/net/wireless/libertas/main.c
@@ -514,8 +514,10 @@ static int lbs_thread(void *data)
514 while (kfifo_len(&priv->event_fifo)) { 514 while (kfifo_len(&priv->event_fifo)) {
515 u32 event; 515 u32 event;
516 516
517 kfifo_out(&priv->event_fifo, (unsigned char *) &event, 517 if (kfifo_out(&priv->event_fifo,
518 sizeof(event)); 518 (unsigned char *) &event, sizeof(event)) !=
519 sizeof(event))
520 break;
519 spin_unlock_irq(&priv->driver_lock); 521 spin_unlock_irq(&priv->driver_lock);
520 lbs_process_event(priv, event); 522 lbs_process_event(priv, event);
521 spin_lock_irq(&priv->driver_lock); 523 spin_lock_irq(&priv->driver_lock);