net/rds: use krealloc_array() for iovector growth

Use krealloc_array() for growing the RDS iovector array. This makes the
array allocation overflow-safe and derives the element size from the
array pointer.

Reviewed-by: Allison Henderson <achender@kernel.org>
Signed-off-by: Weimin Xiong <xiongwm2026@163.com>
Link: https://patch.msgid.link/20260717022537.331863-1-xiongwm2026@163.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
Weimin Xiong 2026-07-17 10:25:37 +08:00 • committed by Jakub Kicinski
commit 04026c998c