Re: [PATCH v2] i2c: cp2615: handle allocation failure

From: Bence Csókás

Date: Fri Aug 28 2026 - 16:12:53 EST


Hi,

On 8/28/26 19:09, Andi Shyti wrote:
On Fri, Aug 28, 2026 at 02:08:19PM +0200, Bence Csókás wrote:
On 8/19/26 08:28, Markus Elfring wrote:
* How do you think about to increase the application of scope-based
resource management?

I second this, this old code could use some RAII modernization.

is there a managed version for kzalloc_obj()?
Well I'm thinking, since msg's lifetime is only within the functions, it can be attributed with `__free(kfree)`.

Anyways, in the curent state of this patch, I'm afraid I must NAK it.

Bence