[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <YXxUIw02XJqVvus3@kunai>
Date: Fri, 29 Oct 2021 22:05:55 +0200
From: Wolfram Sang <wsa@...nel.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: mans@...sr.com, linux-i2c@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH] i2c: xlr: Fix a resource leak in the error handling path
of 'xlr_i2c_probe()'
On Thu, Aug 19, 2021 at 10:48:08PM +0200, Christophe JAILLET wrote:
> A successful 'clk_prepare()' call should be balanced by a corresponding
> 'clk_unprepare()' call in the error handling path of the probe, as already
> done in the remove function.
>
> More specifically, 'clk_prepare_enable()' is used, but 'clk_disable()' is
> also already called. So just the unprepare step has still to be done.
>
> Update the error handling path accordingly.
>
> Fixes: 75d31c2372e4 ("i2c: xlr: add support for Sigma Designs controller variant")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Applied to for-next, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists