RE: [PATCH v2] mmc: tmio-mmc: fix bad pointer math

2017-07-12 Thread Chris Brandt
Hi Geert, On Wednesday, July 12, 2017 1, Geert Uytterhoeven wrote: > > Reported-by: Dan Carpenter > > Fixes: 8185e51f358a: ("mmc: tmio-mmc: add support for 32bit data port") > > Signed-off-by: Chris Brandt > > Reviewed-by: Geert Uytterhoeven

Re: [PATCH v2] mmc: tmio-mmc: fix bad pointer math

2017-07-12 Thread Geert Uytterhoeven
On Wed, Jul 12, 2017 at 3:27 PM, Chris Brandt wrote: > The existing code gives an incorrect pointer value. > The buffer pointer 'buf' was of type unsigned short *, and 'count' was a > number in bytes. A cast of buf should have been used. > > However,instead of casting,

[PATCH v2] mmc: tmio-mmc: fix bad pointer math

2017-07-12 Thread Chris Brandt
The existing code gives an incorrect pointer value. The buffer pointer 'buf' was of type unsigned short *, and 'count' was a number in bytes. A cast of buf should have been used. However,instead of casting, just change the code to use u32 pointers. Reported-by: Dan Carpenter