]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: mipi-i3c-hci: Switch PIO data allocation to devm_kzalloc()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 13 Jan 2026 07:26:47 +0000 (09:26 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 14 Jan 2026 16:21:09 +0000 (17:21 +0100)
commit11d17c2855bfc04550557017eae02e92f3eeab1c
treef74f3483763a7a3d1c24298d48524ea843413385
parentf64c1a46ea7c40bbab57a0cb1665a1c1e11da6af
i3c: mipi-i3c-hci: Switch PIO data allocation to devm_kzalloc()

The driver already uses managed resources, so convert the PIO data
structure allocation to devm_zalloc().  Remove the manual kfree().

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260113072702.16268-7-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master/mipi-i3c-hci/pio.c