On Thu, May 20, 2010 at 04:58:27PM +0800, hellohello wrote: > > I find a problem in > drivers/serial/cpm_uart/cpm_uart_cpm2.c: > int cpm_uart_allocbuf(struct uart_cpm_port *pinfo, unsigned int is_con) > { > ... ... > pinfo->tx_bd_base = pinfo->rx_bd_base + pinfo->rx_nrfifos; > /*The above line should be :*/ > pinfo->tx_bd_base = pinfo->rx_bd_base + sizeof(cbd_t) * pinfo->rx_nrfifos;
No, it shouldn't -- rx_bd_base is of type "cbd_t *", so the multiplication already happens as part of pointer arithmetic. > return 0; > } > > Where to get the newest code for kernel? git.kernel.org > How to know whether it is already patched by anyone else? Just search in > this mail list? As well as the current git tree. -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev