]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped
authorSudeep Holla <sudeep.holla@arm.com>
Wed, 4 Oct 2023 19:36:00 +0000 (20:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:21 +0000 (11:08 +0100)
commit8704bf18a888383d4a683b26eded2f008f7006f5
tree45e92ff1f6b372ea3c13635e3b6300f48c2c750f
parentbdb0428aa2943f734d463f5319c3357e8a896a28
clk: scmi: Free scmi_clk allocated when the clocks with invalid info are skipped

[ Upstream commit 3537a75e73f3420614a358d0c8b390ea483cc87d ]

Add the missing devm_kfree() when we skip the clocks with invalid or
missing information from the firmware.

Cc: Cristian Marussi <cristian.marussi@arm.com>
Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org
Fixes: 6d6a1d82eaef ("clk: add support for clocks provided by SCMI")
Link: https://lore.kernel.org/r/20231004193600.66232-1-sudeep.holla@arm.com
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clk/clk-scmi.c