diff options
author | David S. Miller <davem@davemloft.net> | 2018-05-11 20:53:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-11 20:53:22 -0400 |
commit | b2d6cee117f708d493c020f9f355297321507be7 (patch) | |
tree | 2c6975b47034de78fc899b4191260bb2704efc0f /net/tipc | |
parent | b753a9faaf9aef1338c28ebd9ace6d749428788b (diff) | |
parent | 4bc871984f7cb5b2dec3ae64b570cb02f9ce2227 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
The bpf syscall and selftests conflicts were trivial
overlapping changes.
The r8169 change involved moving the added mdelay from 'net' into a
different function.
A TLS close bug fix overlapped with the splitting of the TLS state
into separate TX and RX parts. I just expanded the tests in the bug
fix from "ctx->conf == X" into "ctx->tx_conf == X && ctx->rx_conf
== X".
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc')
-rw-r--r-- | net/tipc/node.c | 15 | ||||
-rw-r--r-- | net/tipc/socket.c | 3 |
2 files changed, 15 insertions, 3 deletions
diff --git a/net/tipc/node.c b/net/tipc/node.c index b0b840084f0a..6a44eb812baf 100644 --- a/net/tipc/node.c +++ b/net/tipc/node.c | |||
@@ -1977,6 +1977,7 @@ out: | |||
1977 | int tipc_nl_node_get_link(struct sk_buff *skb, struct genl_info *info) | 1977 | int tipc_nl_node_get_link(struct sk_buff *skb, struct genl_info *info) |
1978 | { | 1978 | { |
1979 | struct net *net = genl_info_net(info); | 1979 | struct net *net = genl_info_net(info); |
1980 | struct nlattr *attrs[TIPC_NLA_LINK_MAX + 1]; | ||
1980 | struct tipc_nl_msg msg; | 1981 | struct tipc_nl_msg msg; |
1981 | char *name; | 1982 | char *name; |
1982 | int err; | 1983 | int err; |
@@ -1984,9 +1985,19 @@ int tipc_nl_node_get_link(struct sk_buff *skb, struct genl_info *info) | |||
1984 | msg.portid = info->snd_portid; | 1985 | msg.portid = info->snd_portid; |
1985 | msg.seq = info->snd_seq; | 1986 | msg.seq = info->snd_seq; |
1986 | 1987 | ||
1987 | if (!info->attrs[TIPC_NLA_LINK_NAME]) | 1988 | if (!info->attrs[TIPC_NLA_LINK]) |
1988 | return -EINVAL; | 1989 | return -EINVAL; |
1989 | name = nla_data(info->attrs[TIPC_NLA_LINK_NAME]); | 1990 | |
1991 | err = nla_parse_nested(attrs, TIPC_NLA_LINK_MAX, | ||
1992 | info->attrs[TIPC_NLA_LINK], | ||
1993 | tipc_nl_link_policy, info->extack); | ||
1994 | if (err) | ||
1995 | return err; | ||
1996 | |||
1997 | if (!attrs[TIPC_NLA_LINK_NAME]) | ||
1998 | return -EINVAL; | ||
1999 | |||
2000 | name = nla_data(attrs[TIPC_NLA_LINK_NAME]); | ||
1990 | 2001 | ||
1991 | msg.skb = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); | 2002 | msg.skb = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); |
1992 | if (!msg.skb) | 2003 | if (!msg.skb) |
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index c4992002fd68..930852c54d7a 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -1516,10 +1516,10 @@ static void tipc_sk_set_orig_addr(struct msghdr *m, struct sk_buff *skb) | |||
1516 | 1516 | ||
1517 | srcaddr->sock.family = AF_TIPC; | 1517 | srcaddr->sock.family = AF_TIPC; |
1518 | srcaddr->sock.addrtype = TIPC_ADDR_ID; | 1518 | srcaddr->sock.addrtype = TIPC_ADDR_ID; |
1519 | srcaddr->sock.scope = 0; | ||
1519 | srcaddr->sock.addr.id.ref = msg_origport(hdr); | 1520 | srcaddr->sock.addr.id.ref = msg_origport(hdr); |
1520 | srcaddr->sock.addr.id.node = msg_orignode(hdr); | 1521 | srcaddr->sock.addr.id.node = msg_orignode(hdr); |
1521 | srcaddr->sock.addr.name.domain = 0; | 1522 | srcaddr->sock.addr.name.domain = 0; |
1522 | srcaddr->sock.scope = 0; | ||
1523 | m->msg_namelen = sizeof(struct sockaddr_tipc); | 1523 | m->msg_namelen = sizeof(struct sockaddr_tipc); |
1524 | 1524 | ||
1525 | if (!msg_in_group(hdr)) | 1525 | if (!msg_in_group(hdr)) |
@@ -1528,6 +1528,7 @@ static void tipc_sk_set_orig_addr(struct msghdr *m, struct sk_buff *skb) | |||
1528 | /* Group message users may also want to know sending member's id */ | 1528 | /* Group message users may also want to know sending member's id */ |
1529 | srcaddr->member.family = AF_TIPC; | 1529 | srcaddr->member.family = AF_TIPC; |
1530 | srcaddr->member.addrtype = TIPC_ADDR_NAME; | 1530 | srcaddr->member.addrtype = TIPC_ADDR_NAME; |
1531 | srcaddr->member.scope = 0; | ||
1531 | srcaddr->member.addr.name.name.type = msg_nametype(hdr); | 1532 | srcaddr->member.addr.name.name.type = msg_nametype(hdr); |
1532 | srcaddr->member.addr.name.name.instance = TIPC_SKB_CB(skb)->orig_member; | 1533 | srcaddr->member.addr.name.name.instance = TIPC_SKB_CB(skb)->orig_member; |
1533 | srcaddr->member.addr.name.domain = 0; | 1534 | srcaddr->member.addr.name.domain = 0; |