[PATCH 5.10 150/171] perf: qcom_l2_pmu: fix an incorrect NULL check on list iterator