aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/sgi-xp/xpc_uv.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/misc/sgi-xp/xpc_uv.c b/drivers/misc/sgi-xp/xpc_uv.c
index bbf0e2ee6fd9..19bd7b0ede91 100644
--- a/drivers/misc/sgi-xp/xpc_uv.c
+++ b/drivers/misc/sgi-xp/xpc_uv.c
@@ -949,11 +949,13 @@ xpc_get_fifo_entry_uv(struct xpc_fifo_head_uv *head)
949 head->first = first->next; 949 head->first = first->next;
950 if (head->first == NULL) 950 if (head->first == NULL)
951 head->last = NULL; 951 head->last = NULL;
952
953 head->n_entries--;
954 BUG_ON(head->n_entries < 0);
955
956 first->next = NULL;
952 } 957 }
953 head->n_entries--;
954 BUG_ON(head->n_entries < 0);
955 spin_unlock_irqrestore(&head->lock, irq_flags); 958 spin_unlock_irqrestore(&head->lock, irq_flags);
956 first->next = NULL;
957 return first; 959 return first;
958} 960}
959 961