Searched hist:"8 cdfda89d93a28db6372365d77c642a0ea947f46" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | dw_mmc.c | 8cdfda89d93a28db6372365d77c642a0ea947f46 Sat Mar 23 17:45:27 UTC 2019 Marek Vasut <marex@denx.de> UPSTREAM: mmc: dw_mmc: Handle return value from bounce_buffer_start()
The bounce_buffer_start() can return -ENOMEM in case memory allocation failed. However, in that case, the bounce buffer address is the same as the possibly unaligned input address, and the cache maintenance operations were not applied to this address. This could cause subtle problems. Add handling for the bounce_buffer_start() return value to prevent such a problem from happening.
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Jaehoon Chung <jh80.chung@samsung.com> Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0cdb3196e3ceb1d1f1935e003624afcb05001219 (cherry picked from commit 6ad5aec419782955fa4be79c93f2640fc043f3cf)
|