diff options
author | Ludovic Desroches <ludovic.desroches@microchip.com> | 2018-08-20 10:54:44 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2018-08-21 16:06:17 +0200 |
commit | 19f5e9e015675fcdbf2c20e804b2e84e80201454 (patch) | |
tree | 11211d8374fb9cac4d58394dbe2d2ea6edd3715a /drivers/mmc/host/android-goldfish.c | |
parent | 778a33959a8ad4cb1ea2f4c5119f9e1e8b9f9d9b (diff) |
mmc: atmel-mci: fix bad logic of sg_copy_{from,to}_buffer conversion
The conversion to sg_copy_{from,to}_buffer has been done in the wrong
way. sg_copy_to_buffer is a copy from an SG list to a linear buffer so
it can't replace memcpy(buf + offset, &value, remaining) where buf is
the virtual address of the SG. Same for sg_copy_to_buffer but in the
opposite way.
Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Suggested-by: Douglas Gilbert <dgilbert@interlog.com>
Fixes: 5b4277814e3f ("mmc: atmel-mci: use sg_copy_{from,to}_buffer")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/android-goldfish.c')
0 files changed, 0 insertions, 0 deletions