Re: [PATCH] fdc: check for illegal dma length calculation

2022-01-26 Thread Philippe Mathieu-Daudé via
Hi Jon, On 26/1/22 16:44, Jon Maloy wrote: On 1/13/22 20:33, Jon Maloy wrote: The function fdctrl_start_transfer() calculates the dma data length wrongly when certain boundary conditions are fulfilled. We have noticed that the if ((fdctrl->fifo[5] - fdctrl->fifo[6]) > 1) we get a dma length tha

Re: [PATCH] fdc: check for illegal dma length calculation

2022-01-26 Thread Jon Maloy
On 1/13/22 20:33, Jon Maloy wrote: The function fdctrl_start_transfer() calculates the dma data length wrongly when certain boundary conditions are fulfilled. We have noticed that the if ((fdctrl->fifo[5] - fdctrl->fifo[6]) > 1) we get a dma length that will be interpreted as negative by the ne

[PATCH] fdc: check for illegal dma length calculation

2022-01-13 Thread Jon Maloy
The function fdctrl_start_transfer() calculates the dma data length wrongly when certain boundary conditions are fulfilled. We have noticed that the if ((fdctrl->fifo[5] - fdctrl->fifo[6]) > 1) we get a dma length that will be interpreted as negative by the next function in the chain, fdctrl_transf