net: rds: drop VLA in rds_walk_conn_path_info()
authorSalvatore Mesoraca <s.mesoraca16@gmail.com>
Sun, 11 Mar 2018 21:07:50 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 19:07:00 +0000 (15:07 -0400)
commitb2c9272ae7d366e85ab277f528c3dddb7f268b12
tree46ba306a8823a48cc847744a38a5a68ab4bb3154
parentf1cb9d68b4d8789d7f48bd293772095430860d86
net: rds: drop VLA in rds_walk_conn_path_info()

Avoid VLA[1] by using an already allocated buffer passed
by the caller.

[1] https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Salvatore Mesoraca <s.mesoraca16@gmail.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c