]> git.baikalelectronics.ru Git - kernel.git/commit
tipc: fix link name length check
authorJohn Rutherford <john.rutherford@dektech.com.au>
Tue, 26 Nov 2019 02:52:55 +0000 (13:52 +1100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Nov 2019 18:03:12 +0000 (10:03 -0800)
commitb1cc8498a0dd8d2c12fa9a23cad516e845f78b2e
treed5f35bdf9d3045521bb02986e6c1dcdbd8dc3600
parent6b082a298a3fce6e668b918120136584dab46732
tipc: fix link name length check

In commit 91ecbc5aa8a8 ("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: 91ecbc5aa8a8 ("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>
net/tipc/netlink_compat.c