]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: master: use kzalloc_flex
authorRosen Penev <rosenp@gmail.com>
Thu, 12 Mar 2026 00:15:34 +0000 (17:15 -0700)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sun, 12 Apr 2026 14:32:11 +0000 (16:32 +0200)
commit7f53c556c207600a9cd26798687f2df1c1c1dce2
treeca8d1b2c19f8c1f4e2b2d7fcd065147661a0f6a3
parenteaa1d092a4f304415b867b7b74ed74b8f8722b0b
i3c: master: use kzalloc_flex

Simplifies allocations by using a flexible array member in this struct.

Add __counted_by to get extra runtime analysis.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260312001534.24423-1-rosenp@gmail.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c