]> 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)
commit8c4221c9af273a814dbd1bb00464cd2861c4f965
tree664ea4cfbd7c46f36fbf57f884621eb0cdd1e889
parent4a1d145827477e596fb9c4892a221f8496fbc482
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: 8382a55f8658 ("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