diff options
Diffstat (limited to 'drivers/infiniband/core/nldev.c')
| -rw-r--r-- | drivers/infiniband/core/nldev.c | 20 | 
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/infiniband/core/nldev.c b/drivers/infiniband/core/nldev.c index 020c26976558..7a7474000100 100644 --- a/drivers/infiniband/core/nldev.c +++ b/drivers/infiniband/core/nldev.c @@ -831,7 +831,7 @@ static int nldev_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_free:  	nlmsg_free(msg); @@ -971,7 +971,7 @@ static int nldev_port_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_free:  	nlmsg_free(msg); @@ -1073,7 +1073,7 @@ static int nldev_res_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_free:  	nlmsg_free(msg); @@ -1250,7 +1250,7 @@ static int res_get_common_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_free:  	nlmsg_free(msg); @@ -1595,7 +1595,7 @@ static int nldev_get_chardev(struct sk_buff *skb, struct nlmsghdr *nlh,  	put_device(data.cdev);  	if (ibdev)  		ib_device_put(ibdev); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  out_data:  	put_device(data.cdev); @@ -1635,7 +1635,7 @@ static int nldev_sys_get_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  		return err;  	}  	nlmsg_end(msg, nlh); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  }  static int nldev_set_sys_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh, @@ -1733,7 +1733,7 @@ static int nldev_stat_set_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_fill:  	rdma_counter_unbind_qpn(device, port, qpn, cntn); @@ -1801,7 +1801,7 @@ static int nldev_stat_del_doit(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_fill:  	rdma_counter_bind_qpn(device, port, qpn, cntn); @@ -1892,7 +1892,7 @@ static int stat_get_doit_default_counter(struct sk_buff *skb,  	mutex_unlock(&stats->lock);  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_table:  	nla_nest_cancel(msg, table_attr); @@ -1964,7 +1964,7 @@ static int stat_get_doit_qp(struct sk_buff *skb, struct nlmsghdr *nlh,  	nlmsg_end(msg, nlh);  	ib_device_put(device); -	return rdma_nl_unicast(msg, NETLINK_CB(skb).portid); +	return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid);  err_msg:  	nlmsg_free(msg);  |