Re: [PATCH] soc: qcom: smem: Fix signedness bug

From: Konrad Dybcio

Date: Tue Aug 18 2026 - 04:39:59 EST


On 8/18/26 4:34 AM, Ethan Tidmore wrote:
> The function smem_dram_infer_struct_version() returns negative error
> codes and 'ver' is an enum, which makes subsequent condition (ver < 0)
> always impossible.
>
> Fixes: 1d234eeafc56a ("soc: qcom: smem: Expose DDR data from SMEM")
> Signed-off-by: Ethan Tidmore <ethantidmore06@xxxxxxxxx>
> ---

We already got another fix for that:

https://lore.kernel.org/linux-arm-msm/an1toQ-acGR0kOWj@stanley.mountain/

Konrad