Re: [PATCH v2] bus: mhi: host: free buffer on error in mhi_alloc_bhie_table

From: Jeffrey Hugo
Date: Wed Feb 07 2024 - 13:15:23 EST


On 2/7/2024 6:40 AM, Fedor Pchelkin wrote:
img_info->mhi_buf should be freed on error path in mhi_alloc_bhie_table().
This error case is rare but still needs to be fixed.

Found by Linux Verification Center (linuxtesting.org).

Fixes: 3000f85b8f47 ("bus: mhi: core: Add support for basic PM operations")
Cc: stable@xxxxxxxxxxxxxxx
Signed-off-by: Fedor Pchelkin <pchelkin@xxxxxxxxx>

Reviewed-by: Jeffrey Hugo <quic_jhugo@xxxxxxxxxxx>