]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 08:46:09 +0000 (01:46 -0700)
commitf418504bde5c3f1e59a54627a521a7514be98d8b
tree664ea4cfbd7c46f36fbf57f884621eb0cdd1e889
parent5d3dd61b657b4f57c9c278efbe997eca58c4bdb2
hsr: add restart routine into hsr_get_node_list()

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: f8baa9c29c38 ("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>
net/hsr/hsr_netlink.c