linux/drivers/greybus/svc.c
Rosen Penev 8ca3d3b1c3 greybus: svc: use kzalloc_flex
Avoid manual sizeof math by using the proper helper.

Also use struct_size for the buffer size.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://patch.msgid.link/20260317031458.93315-1-rosenp@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-04-02 15:55:01 +02:00

1407 lines
35 KiB