From: Markus Elfring Date: Wed, 29 Apr 2020 13:30:20 +0000 Subject: Re: [PATCH] clk/meson: Complete exception handling in meson8b_clkc_init_common() Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Bernard Zhao , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Cc: opensource.kernel@vivo.com, Neil Armstrong , Stephen Boyd , Kevin Hilman , Michael Turquette , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, Jerome Brunet > In common init function, when run into err branch, we didn`t > use kfree to release kzmalloc area, this may bring in memleak * I suggest to improve also this change description. * Please move the resource release functions to end of the function “meson8b_clkc_init_common” here. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=96c9a7802af7d500a582d89a8b864584fe878c1b#n450 * Will the tag “Fixes” be relevant then for the completed exception handling? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?id=96c9a7802af7d500a582d89a8b864584fe878c1b#n183 Regards, Markus