]> git.dujemihanovic.xyz Git - linux.git/commit
clk: Zero the clk_rate_request structure
authorMaxime Ripard <maxime@cerno.tech>
Tue, 16 Aug 2022 11:25:27 +0000 (13:25 +0200)
committerStephen Boyd <sboyd@kernel.org>
Thu, 15 Sep 2022 16:32:18 +0000 (09:32 -0700)
commitb46fd8dbe8ad3fe6dcd44dcdf01a736c50d90a68
tree524d93573e3e11989592d0eca997e2e034730793
parent262ca38f4b6eb418b20b8e1d6d8495c6a98727c1
clk: Zero the clk_rate_request structure

In order to make sure we don't carry anything over from an already
existing clk_rate_request pointer we would pass to
clk_core_init_rate_req(), let's zero the entire structure before
initializing it.

Tested-by: Alexander Stein <alexander.stein@ew.tq-group.com> # imx8mp
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> # exynos4210, meson g12b
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20220816112530.1837489-23-maxime@cerno.tech
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/clk.c