John Rutherford b5c36e7734 tipc: fix link name length check
[ Upstream commit fd567ac20cb0377ff466d3337e6e9ac5d0cb15e4 ]

In commit 4f07b80c9733 ("tipc: check msg->req data len in
tipc_nl_compat_bearer_disable") the same patch code was copied into
routines: tipc_nl_compat_bearer_disable(),
tipc_nl_compat_link_stat_dump() and tipc_nl_compat_link_reset_stats().
The two link routine occurrences should have been modified to check
the maximum link name length and not bearer name length.

Fixes: 4f07b80c9733 ("tipc: check msg->reg data len in tipc_nl_compat_bearer_disable")
Signed-off-by: John Rutherford <john.rutherford@dektech.com.au>
Acked-by: Jon Maloy <jon.maloy@ericsson.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-04 22:31:03 +01:00
..
2018-03-23 13:12:18 -04:00
2019-03-21 09:56:55 -07:00
2019-08-08 22:11:39 -07:00
2019-08-08 22:11:39 -07:00
2018-08-29 18:04:54 -07:00
2018-12-19 11:49:24 -08:00
2016-07-26 14:26:42 -07:00
2019-07-25 15:55:47 -07:00
2019-08-08 22:11:39 -07:00
2018-12-19 11:49:25 -08:00