Re: [CHECKER] race in 2.5.62/drivers/char/esp.c?

Alan Cox (alan@lxorguk.ukuu.org.uk)
22 Mar 2003 17:09:41 +0000


> /u2/engler/mc/oses/linux/linux-2.5.62/drivers/char/esp.c:1426:rs_throttle
> cli();
> info->IER &= ~UART_IER_RDI;
> serial_out(info, UART_ESI_CMD1, ESI_SET_SRV_MASK);
> serial_out(info, UART_ESI_CMD2, info->IER);
> serial_out(info, UART_ESI_CMD1, ESI_SET_RX_TIMEOUT);
> serial_out(info, UART_ESI_CMD2, 0x00);
> sti();

> Error --->
> serial_out(info, UART_ESI_CMD1, ESI_GET_UART_STAT);
> if (serial_in(info, UART_ESI_STAT2) & UART_MSR_DCD)
> do_clocal = 1;

This is a bug yes - the CMD/STAT sequences look like they need a
spinlock to control sequence that use them. Does anyone have an esp card
any more to test stuff ?

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