drivers/perf: hisi_pcie: Initialize event->cpu only on success
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8BOML CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/will/linux.git/commit/?h=for-next/perf&id=868f8a709874729998bcad3422124b678b18b755 -------------------------------- Initialize the event->cpu only on success. To be more reasonable and keep consistent with other PMUs. Signed-off-by:Yicong Yang <yangyicong@hisilicon.com> Link: https://lore.kernel.org/r/20231024092954.42297-3-yangyicong@huawei.com Signed-off-by:
Will Deacon <will@kernel.org> Signed-off-by:
Junhao He <hejunhao3@huawei.com>
Loading
Please sign in to comment