Re: [PATCH] serial: 8250_bcm7271: Fix return error code in case of dma_alloc_coherent() failure

From: Florian Fainelli
Date: Tue Jan 04 2022 - 13:13:01 EST


On 1/4/22 9:50 AM, Lad Prabhakar wrote:
> In case of dma_alloc_coherent() failure return -ENOMEM instead of
> returning -EINVAL.
>
> Fixes: c195438f1e84 ("serial: 8250_bcm7271: Propagate error codes from brcmuart_probe()")
> Reported-by: Andy Shevchenko <andy.shevchenko@xxxxxxxxx>
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

The fixes tag may be a bit superfluous since this is just an error path,
but it is correct nonetheless.
--
Florian