Revert "tipc: check the bearer min mtu properly when setting it by netlink"
This reverts commit f215b62f59.
It breaks the Android KABI and will be brought back at a later time when
it is safe to do so.
Bug: 161946584
Change-Id: I73405c81e516fe41538c53ca42f0ae2eeecf8fa8
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
parent
5caf658594
commit
9626cfb677
1 changed files with 2 additions and 2 deletions
|
|
@ -1151,8 +1151,8 @@ int __tipc_nl_bearer_set(struct sk_buff *skb, struct genl_info *info)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
#ifdef CONFIG_TIPC_MEDIA_UDP
|
#ifdef CONFIG_TIPC_MEDIA_UDP
|
||||||
if (nla_get_u32(props[TIPC_NLA_PROP_MTU]) <
|
if (tipc_udp_mtu_bad(nla_get_u32
|
||||||
b->encap_hlen + TIPC_MIN_BEARER_MTU) {
|
(props[TIPC_NLA_PROP_MTU]))) {
|
||||||
NL_SET_ERR_MSG(info->extack,
|
NL_SET_ERR_MSG(info->extack,
|
||||||
"MTU value is out-of-range");
|
"MTU value is out-of-range");
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue