]> git.ipfire.org Git - thirdparty/linux.git/commit
clk: hisilicon: Improve deallocation in error path
authorJ. Neuschäfer <j.ne@posteo.net>
Tue, 3 Mar 2026 15:25:18 +0000 (16:25 +0100)
committerStephen Boyd <sboyd@kernel.org>
Wed, 29 Apr 2026 03:52:43 +0000 (20:52 -0700)
commit7b03559044d20bb4cfa1a19df79dd1b52e27fb3a
tree9c966122cfef601b3eeb18c6866e41d0bc61f245
parent9a51504d7c01b5279b2e787fa80bcb0b49c3f123
clk: hisilicon: Improve deallocation in error path

Unmap 'base' if an error occurs after it has been mapped.

Reported-by: Tao Lan <taolan@huawei.com>
Closes: https://lore.kernel.org/lkml/ZNlSH+eWV8Sk3FYn@probook/
Signed-off-by: J. Neuschäfer <j.ne@posteo.net>
Reviewed-by: Brian Masney <bmasney@redhat.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/hisilicon/clk.c