teamd: tipc: use TIPC_MAX_*_NAME for buffers and check len
teamd: tipc: use TIPC_MAX_*_NAME for buffers and check len

You might overrun the 255 byte fixed-size string "tipc_ppriv->bearer" by
copying "tipc_bearer" without checking the length.

Introduced-by: 847046a5c7 ("teamd: add TIPC link watcher")
Signed-off-by: Jiri Pirko <1b548d10035ae428195c41f5d55eedb1437ccd8a@resnulli.us>
Acked-by: Flavio Leitner <aad92d04492d3e9d68113c6843d4514145c8ed06@redhat.com>

ekinzie/libteam,jpirko/libteam,marceloleitner/libteam,marceloleitner/libteam,marceloleitner/libteam,jpirko/libteam,jpirko/libteam,ekinzie/libteam,ekinzie/libteam