/* n_hdlc_buf_put - add specified HDLC buffer to tail of specified list @list - pointer to buffer list @buf - pointer to buffer  */
static void n_hdlc_buf_put(struct n_hdlc_buf_list *list, struct n_hdlc_buf *buf)
/* n_hdlc_buf_put - add specified HDLC buffer to tail of specified list @list - pointer to buffer list @buf - pointer to buffer  */
static void n_hdlc_buf_put(struct n_hdlc_buf_list *list, struct n_hdlc_buf *buf)
{
	unsigned long flags;
	spin_lock_irqsave(&list->spinlock,flags);
	buf->link=NULL;
	if (list->tail)
		list->tail->link = buf;
	else
		list->head = buf;
	list->tail = buf;
	(list->count)++;
	spin_unlock_irqrestore(&list->spinlock,flags);
}