diff options
author | Chris Brandt <[email protected]> | 2017-07-12 08:40:01 -0700 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2017-07-13 11:56:35 +0200 |
commit | 9c284c41c0886f09e75c323a16278b6d353b0b4a (patch) | |
tree | 2b89b0b7b752949be7c3c6347beb1541cc8947c8 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | bbdc74dc19e09ac4e71bfb219596b3d5bc786720 (diff) |
mmc: tmio-mmc: fix bad pointer math
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 <[email protected]>
Fixes: 8185e51f358a: ("mmc: tmio-mmc: add support for 32bit data port")
Signed-off-by: Chris Brandt <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
Cc: <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions