diff options
author | Chris Brandt <chris.brandt@renesas.com> | 2017-07-12 08:40:01 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-06 09:21:11 -0700 |
commit | b5dd7985e8d3357ff9537c0be231190ab1a131fe (patch) | |
tree | 719f4b1b8b9b319f4a1368174c055f8cb6ab4270 /drivers/md/raid1.c | |
parent | 75791420f2942f47f4fb5626110723668feea9a7 (diff) | |
download | talos-op-linux-b5dd7985e8d3357ff9537c0be231190ab1a131fe.tar.gz talos-op-linux-b5dd7985e8d3357ff9537c0be231190ab1a131fe.zip |
mmc: tmio-mmc: fix bad pointer math
commit 9c284c41c0886f09e75c323a16278b6d353b0b4a upstream.
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 <dan.carpenter@oracle.com>
Fixes: 8185e51f358a: ("mmc: tmio-mmc: add support for 32bit data port")
Signed-off-by: Chris Brandt <chris.brandt@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/md/raid1.c')
0 files changed, 0 insertions, 0 deletions