Re: [PATCH] perf: qcom_l2_pmu: fix an incorrect NULL check on list iterator
From: Will Deacon
Date: Mon Apr 04 2022 - 06:11:40 EST
On Sun, 27 Mar 2022 13:57:33 +0800, Xiaomeng Tong wrote:
> The bug is here:
> return cluster;
>
> The list iterator value 'cluster' will *always* be set and non-NULL
> by list_for_each_entry(), so it is incorrect to assume that the
> iterator value will be NULL if the list is empty or no element
> is found.
>
> [...]
Applied to arm64 (for-next/fixes), thanks!
[1/1] perf: qcom_l2_pmu: fix an incorrect NULL check on list iterator
https://git.kernel.org/arm64/c/2012a9e27901
Cheers,
--
Will
https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev