Re: [PATCH] firmware: imx-dsp: Fix an error handling path in imx_dsp_setup_channels()

From: Daniel Baluta
Date: Tue Jan 17 2023 - 02:55:31 EST


On Sun, Jan 15, 2023 at 8:35 PM Christophe JAILLET
<christophe.jaillet@xxxxxxxxxx> wrote:
>
> If mbox_request_channel_byname() fails, the memory allocated a few lines
> above still need to be freed before going to the error handling path.
>
> Fixes: 046326989a18 ("firmware: imx: Save channel name for further use")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Good catch.

Reviewed-by: Daniel Baluta <daniel.baluta@xxxxxxx>