diff options
author | Anirudh Rayabharam <mail@anirudhrb.com> | 2021-05-03 13:56:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 17:33:18 +0200 |
commit | 0c32a96d000f260b5ebfabb4145a86ae1cd71847 (patch) | |
tree | 48874ffa7fd2ac97dc4bb85e5e8f0933d2d8511f /mm/gup_test.h | |
parent | Revert "net: stmicro: fix a missing check of clk_prepare" (diff) | |
download | linux-0c32a96d000f260b5ebfabb4145a86ae1cd71847.tar.xz linux-0c32a96d000f260b5ebfabb4145a86ae1cd71847.zip |
net: stmicro: handle clk_prepare() failure during init
In case clk_prepare() fails, capture and propagate the error code up the
stack. If regulator_enable() was called earlier, properly unwind it by
calling regulator_disable().
Signed-off-by: Anirudh Rayabharam <mail@anirudhrb.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: stable <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20210503115736.2104747-22-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/gup_test.h')
0 files changed, 0 insertions, 0 deletions