]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: pcs: use devm_kzalloc() 23391/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Fri, 15 May 2026 19:53:29 +0000 (21:53 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 17 May 2026 10:34:47 +0000 (12:34 +0200)
commit42cf34d3f8faccdcb7a1b6dae8cd84c020563042
treeceeb430c1fec9054c128ea529c0dae714ea510f7
parentc83c74a4823a285dde17246793b0b9fc28dc001d
realtek: pcs: use devm_kzalloc()

Just for safety. Use device managed operation so the
memory is automatically reclaimed when the parent PCS
controller is removed.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/23391
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/realtek/files-6.18/drivers/net/pcs/pcs-rtl-otto.c