diff options
author | Salvatore Mesoraca <s.mesoraca16@gmail.com> | 2018-03-11 22:07:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-12 15:06:59 -0400 |
commit | f1cb9d68b4d8789d7f48bd293772095430860d86 (patch) | |
tree | 238171f3f41d78691100707d296c3612aaa8ab28 /net/rds/rds.h | |
parent | 3ed898e8cd0588152d9f0d7f472387c4af7f640e (diff) | |
download | linux-f1cb9d68b4d8789d7f48bd293772095430860d86.tar.gz |
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>
Diffstat (limited to 'net/rds/rds.h')
-rw-r--r-- | net/rds/rds.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/rds/rds.h b/net/rds/rds.h index 74cd27c661de..b04c333d9d1c 100644 --- a/net/rds/rds.h +++ b/net/rds/rds.h @@ -735,6 +735,7 @@ void rds_for_each_conn_info(struct socket *sock, unsigned int len, struct rds_info_iterator *iter, struct rds_info_lengths *lens, int (*visitor)(struct rds_connection *, void *), + u64 *buffer, size_t item_len); __printf(2, 3) |