net: rds: drop VLA in rds_for_each_conn_info()
authorSalvatore Mesoraca <s.mesoraca16@gmail.com>
Sun, 11 Mar 2018 21:07:49 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Mar 2018 19:06:59 +0000 (15:06 -0400)
commitf1cb9d68b4d8789d7f48bd293772095430860d86
tree238171f3f41d78691100707d296c3612aaa8ab28
parent3ed898e8cd0588152d9f0d7f472387c4af7f640e
net: rds: drop VLA in rds_for_each_conn_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>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/connection.c
net/rds/ib.c
net/rds/rds.h