diff options
| author | Ludovic Desroches <[email protected]> | 2018-08-20 08:54:45 +0000 |
|---|---|---|
| committer | Ulf Hansson <[email protected]> | 2018-08-21 14:06:17 +0000 |
| commit | 17e96d8516e31c3cb52cb8e2ee79d1d2e6948c11 (patch) | |
| tree | bc60f2baf18d3cf723fa0df1353bcd6cdec94c1f /drivers/mmc/core/queue.c | |
| parent | mmc: atmel-mci: fix bad logic of sg_copy_{from,to}_buffer conversion (diff) | |
| download | kernel-17e96d8516e31c3cb52cb8e2ee79d1d2e6948c11.tar.gz kernel-17e96d8516e31c3cb52cb8e2ee79d1d2e6948c11.zip | |
mmc: android-goldfish: 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(dest, host->virt_base, data->sg->length) where
dest is the virtual address of the SG. Same for sg_copy_from_buffer
but in the opposite way.
Signed-off-by: Ludovic Desroches <[email protected]>
Suggested-by: Douglas Gilbert <[email protected]>
Fixes: 53d7e098ba08 ("mmc: android-goldfish: use sg_copy_{from,to}_buffer")
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/mmc/core/queue.c')
0 files changed, 0 insertions, 0 deletions
