Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp825125imu; Fri, 11 Jan 2019 09:40:56 -0800 (PST) X-Google-Smtp-Source: ALg8bN7ysRZ72TkaLRURnTNayCUE0gLvDZOguIR8/sQyjX3EBj3U35oAoymYFSrbaV7QX2ESe2Eg X-Received: by 2002:a63:b649:: with SMTP id v9mr14221771pgt.436.1547228456741; Fri, 11 Jan 2019 09:40:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547228456; cv=none; d=google.com; s=arc-20160816; b=gAgZeWq7Q2AKCw5qUXtZqygpS6CapPwMJlg81YktwrQw6zrAs/pKEmKzXziiLZoISR i6xL3nMdG16pFH3NIVjbaVY+Ju1BtwMrGtDKPqSPNQCxgt4eluhS51EhQCsf1XYuSfh6 2UnoGhJC3s/HYuLzd1abGAgMJ8eqha2LXn74pKeuMxEI6EwP/0WYbLp780Hf+AIaFCQP D2aR7w2BYjuQfVc/vorBKdO7O3I/v6+FIYJ3zjnbBhqy6zGrbHVldY5JlswgDL6gqThw CuxXd7VSUpXk/xKWxjQTfSoAAbzI0wM962n/HXnJHN5wjE39+WEU5b/IjGCu3dNHfe4A I+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2bXgjhSj2qefBAV0G/V4U7EtCuBw8QY6s0XfaGb6640=; b=Xv4IQhWebMRJurrirCnZ3R8r9ToN/VfytnJoFeSxDtXPvsTTe3C6BojkDSGo1wcSwE cezpVpl2S7fqyhIibs4+MSSGKRkVX9/UTbxSzPoJTUbB4fo3YHwKLHkCUqEoecnu2Zh5 W9FIL0Bv/0EDZyqSMaycfRAwASNeBcTo47uoPEYgWIx2WYR4eUL1Q+JW8LBZqRwbPP3o ZSdAPK+/zhEQOPlg0h71cC/SEcqpq1lRHq39uB/2af5OPJk8aoXU8Q/gbZg3Cwz8FnRe vSK4B/afJvJN8ySxsRZtuXTrzGaMl+mNUJzjpEtmgeY5dUfeTDyKImiWv01meA8odnWa KrkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KaByYTkh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r196si3510753pgr.311.2019.01.11.09.40.41; Fri, 11 Jan 2019 09:40:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KaByYTkh; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731680AbfAKOTS (ORCPT + 99 others); Fri, 11 Jan 2019 09:19:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:36026 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730595AbfAKOTN (ORCPT ); Fri, 11 Jan 2019 09:19:13 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B5DD621841; Fri, 11 Jan 2019 14:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547216353; bh=VeSxX8EMEuy2YtcYxp90yAOlHX2g1YLaPq7t/34q7wY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KaByYTkhn94qjZstQwQGk/Op0834XwZuHrzFd0pGI+0KT4CkvCrkakLCqit/yC386 JgvM0dmuJeAwXeZJSV9sNR4Bl25EyqXXCSXWqoWa8uA8lzE0c7Xn9ICDf0cVxD1fQR xbtCD6XgPesG8Cog0TuFWkPhd/Nl+was5lAX0hwQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vasily Averin , "J. Bruce Fields" Subject: [PATCH 4.4 69/88] sunrpc: use SVC_NET() in svcauth_gss_* functions Date: Fri, 11 Jan 2019 15:08:38 +0100 Message-Id: <20190111131057.561418619@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190111131045.137499039@linuxfoundation.org> References: <20190111131045.137499039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Vasily Averin commit b8be5674fa9a6f3677865ea93f7803c4212f3e10 upstream. Signed-off-by: Vasily Averin Cc: stable@vger.kernel.org Signed-off-by: J. Bruce Fields Signed-off-by: Greg Kroah-Hartman --- net/sunrpc/auth_gss/svcauth_gss.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) --- a/net/sunrpc/auth_gss/svcauth_gss.c +++ b/net/sunrpc/auth_gss/svcauth_gss.c @@ -1105,7 +1105,7 @@ static int svcauth_gss_legacy_init(struc struct kvec *resv = &rqstp->rq_res.head[0]; struct rsi *rsip, rsikey; int ret; - struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); + struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); memset(&rsikey, 0, sizeof(rsikey)); ret = gss_read_verf(gc, argv, authp, @@ -1216,7 +1216,7 @@ static int svcauth_gss_proxy_init(struct uint64_t handle; int status; int ret; - struct net *net = rqstp->rq_xprt->xpt_net; + struct net *net = SVC_NET(rqstp); struct sunrpc_net *sn = net_generic(net, sunrpc_net_id); memset(&ud, 0, sizeof(ud)); @@ -1406,7 +1406,7 @@ svcauth_gss_accept(struct svc_rqst *rqst __be32 *rpcstart; __be32 *reject_stat = resv->iov_base + resv->iov_len; int ret; - struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); + struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); dprintk("RPC: svcauth_gss: argv->iov_len = %zd\n", argv->iov_len); @@ -1694,7 +1694,7 @@ svcauth_gss_release(struct svc_rqst *rqs struct rpc_gss_wire_cred *gc = &gsd->clcred; struct xdr_buf *resbuf = &rqstp->rq_res; int stat = -EINVAL; - struct sunrpc_net *sn = net_generic(rqstp->rq_xprt->xpt_net, sunrpc_net_id); + struct sunrpc_net *sn = net_generic(SVC_NET(rqstp), sunrpc_net_id); if (gc->gc_proc != RPC_GSS_PROC_DATA) goto out;