summaryrefslogtreecommitdiffstats
path: root/drivers/opp
diff options
context:
space:
mode:
authorWang Hui <john.wanghui@huawei.com>2021-01-15 22:59:16 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-21 18:54:37 +0100
commit927633a6d20af319d986f3e42c3ef9f6d7835008 (patch)
treefb1480a22b0580cb00837eb66e1b63cfd42d2e50 /drivers/opp
parent02039b172327da1e64beca615500367abf8605c6 (diff)
downloadlinux-stable-927633a6d20af319d986f3e42c3ef9f6d7835008.tar.gz
linux-stable-927633a6d20af319d986f3e42c3ef9f6d7835008.tar.bz2
linux-stable-927633a6d20af319d986f3e42c3ef9f6d7835008.zip
stm class: Fix module init return on allocation failure
In stm_heartbeat_init(): return value gets reset after the first iteration by stm_source_register_device(), so allocation failures after that will, after a clean up, return success. Fix that. Fixes: 119291853038 ("stm class: Add heartbeat stm source device") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wang Hui <john.wanghui@huawei.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Link: https://lore.kernel.org/r/20210115195917.3184-2-alexander.shishkin@linux.intel.com Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/opp')
0 files changed, 0 insertions, 0 deletions