[PATCH] hwtracing: stm: fix return value of error branch in stm_heartbeat_init

2020-11-23 Thread Wang Hui
ret would be reset by stm_source_register_device after first loop, so we should reassign ret while allocation failed for stm_heartbeat[i].data.name Reported-by: Hulk Robot Fixes: 119291853038 ("stm class: Add heartbeat stm source device") Signed-off-by: Wang Hui --- drivers/hwt

[tip:x86/urgent] x86/intel_rdt: Fix incorrect returned value when creating rdgroup sub-directory in resctrl file system

2018-02-22 Thread tip-bot for Wang Hui
Commit-ID: 36e74d355297dde6e69a39c838d24710e442babe Gitweb: https://git.kernel.org/tip/36e74d355297dde6e69a39c838d24710e442babe Author: Wang Hui <john.wang...@huawei.com> AuthorDate: Thu, 22 Feb 2018 19:26:03 -0800 Committer: Ingo Molnar <mi...@kernel.org> CommitDate: Fri, 23

[tip:x86/urgent] x86/intel_rdt: Fix incorrect returned value when creating rdgroup sub-directory in resctrl file system

2018-02-22 Thread tip-bot for Wang Hui
Commit-ID: 36e74d355297dde6e69a39c838d24710e442babe Gitweb: https://git.kernel.org/tip/36e74d355297dde6e69a39c838d24710e442babe Author: Wang Hui AuthorDate: Thu, 22 Feb 2018 19:26:03 -0800 Committer: Ingo Molnar CommitDate: Fri, 23 Feb 2018 08:03:21 +0100 x86/intel_rdt: Fix incorrect