hsr: add restart routine into hsr_get_node_list()
authorTaehee Yoo <ap420073@gmail.com>
Fri, 13 Mar 2020 06:50:24 +0000 (06:50 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Apr 2020 15:20:31 +0000 (17:20 +0200)
commitc669c9376d7e5e24d3067fcc5352a45864acb112
tree1bc2451a3070f5b947301be5327242b8ae174293
parent9bc97bc67f01b2b729aae0efb070fb0edd38c2dc
hsr: add restart routine into hsr_get_node_list()

[ Upstream commit ca19c70f5225771c05bcdcb832b4eb84d7271c5e ]

The hsr_get_node_list() is to send node addresses to the userspace.
If there are so many nodes, it could fail because of buffer size.
In order to avoid this failure, the restart routine is added.

Fixes: f421436a591d ("net/hsr: Add support for the High-availability Seamless Redundancy protocol (HSRv0)")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/hsr/hsr_netlink.c