android_kernel_samsung_a7y1.../net/tipc
John Rutherford d6feb4218d 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>
2020-04-07 12:43:38 +02:00
..
addr.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
addr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcast.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bcast.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bearer.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
bearer.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.c tipc: change to use register_pernet_device 2020-04-06 19:17:25 +02:00
core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
discover.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
discover.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
eth_media.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ib_media.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
link.c tipc: fix skb may be leaky in tipc_link_input 2020-04-07 12:42:58 +02:00
link.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msg.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msg.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
name_distr.c tipc: add NULL pointer check before calling kfree_rcu 2020-04-06 21:35:27 +02:00
name_distr.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
name_table.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
name_table.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
net.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
net.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netlink_compat.c tipc: fix link name length check 2020-04-07 12:43:38 +02:00
netlink.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netlink.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
node.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
node.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
server.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
server.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
socket.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
socket.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
subscr.c tipc: fix modprobe tipc failed after switch order of device registration -v2 2020-04-06 18:20:58 +02:00
subscr.h tipc: fix modprobe tipc failed after switch order of device registration -v2 2020-04-06 18:20:58 +02:00
sysctl.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
udp_media.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30