]> Git Repo - linux.git/commit
stm class: Fix module init return on allocation failure
authorWang Hui <[email protected]>
Fri, 15 Jan 2021 19:59:16 +0000 (22:59 +0300)
committerGreg Kroah-Hartman <[email protected]>
Thu, 21 Jan 2021 17:54:37 +0000 (18:54 +0100)
commit927633a6d20af319d986f3e42c3ef9f6d7835008
treefb1480a22b0580cb00837eb66e1b63cfd42d2e50
parent02039b172327da1e64beca615500367abf8605c6
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 <[email protected]>
Signed-off-by: Wang Hui <[email protected]>
Signed-off-by: Alexander Shishkin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/hwtracing/stm/heartbeat.c
This page took 0.053998 seconds and 4 git commands to generate.