Re: 'scheduling while atomic' during ppp connection on 2.6.37.1 and2.6.38

From: Alan Cox
Date: Sun Mar 20 2011 - 17:58:23 EST


> + spin_lock_irqsave(&dc->spin_mutex, flags);
> if (port->port.count)
> room = kfifo_avail(&port->fifo_ul);
> - mutex_unlock(&port->tty_sem);
> + spin_unlock_irqrestore(&dc->spin_mutex, flags);

dc->spin_mutex does not protect port->port.count.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/