[U-Boot] [PATCH] mmc: dw_mmc: Handle return value from bounce_buffer_start()

Simon Glass sjg at chromium.org
Sat Mar 30 21:18:55 UTC 2019


On Sat, 23 Mar 2019 at 11:55, Marek Vasut <marex at denx.de> wrote:
>
> 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 at denx.de>
> Cc: Jaehoon Chung <jh80.chung at samsung.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  drivers/mmc/dw_mmc.c | 10 ++++++++--
>  1 file changed, 8 insertions(+), 2 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list