Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1650453pxu; Tue, 24 Nov 2020 05:54:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1HSu+d4b+noKDfaByYk7n214EaRj/m+PF9nLYx+g08PCoRmeSd7zSYNmU14LdQq6IziFs X-Received: by 2002:a17:906:b745:: with SMTP id fx5mr4427829ejb.103.1606226041582; Tue, 24 Nov 2020 05:54:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606226041; cv=none; d=google.com; s=arc-20160816; b=dqADx7bIebqPNkpw7XQl5hr7gsIb9mQMzQqKq6dEaiJz/xy8KZb7l9oRqwh9Sw1t3Q kj9sn/ZvMGhGxFCaIc+YGVh4tby+XhQJ9B0yIeGjrnVyoeHXrFDKMmhpieg7NYamys5S R7UqbpDycy5rmJAZChLY2+ffZCO92nrp8VC3BXvSwo36SOTsnX/Ib3QZPdwKy035t0Da sgVB3kaiJ7e9gZJ9rkwxepd5euFkj0hkDj+qqDLTSCnzDYudTPWPnWUWxL4vamiMVNlj Sd8Ped5ftMtfzbDs6BrnE9OuzpLw7LgnJXCRb/98ttwCuoSDPRm8Me7qN0FyXFxDzzK5 YJnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=Wu3A5412c/UJlzysXlC/0scJ4NNX1xCK9QsRJw9fCko=; b=jvuuKzkpbrlq3wK+BEn9xDxulIGud+6hrRHD+H7GJnPhrA8U8/Q+JPPuA/NZKnzoMQ Hk/1wtp/syUDXPVlROig2Yo9jDJsO17PNhwI0quqLxmwZtLSuFTQ/w2e6MBY+LGAAG8j DG6peX1P15XncSpnw9/OdhXbmNNQGoWKHdddrOkl1LNK28n4EB4fMQ7dGLDwuRsvtiZ0 6G+AB/uRhaBg800pr30shPNxTx9uqEsTIKkVzvi0aet1wKn90XfDQOdsyePFHXh0coYO QZDpmcEEHt2XpyNsdgARwqb94pakcYGjWsMYgbuWAEcfF3pUsioxYZh7W7Z8w2xD2A9g RbtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AUVGcOmO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gv1si8330810ejb.249.2020.11.24.05.53.24; Tue, 24 Nov 2020 05:54:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AUVGcOmO; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388582AbgKXNu3 (ORCPT + 99 others); Tue, 24 Nov 2020 08:50:29 -0500 Received: from mail.kernel.org ([198.145.29.99]:44666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388575AbgKXNu2 (ORCPT ); Tue, 24 Nov 2020 08:50:28 -0500 Received: from leira.hammer.space (c-68-36-133-222.hsd1.mi.comcast.net [68.36.133.222]) (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 1BBFD20888 for ; Tue, 24 Nov 2020 13:50:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1606225828; bh=A2MtDuZ1NZ5rfhyFyzg3U6eJcSxZ9+2Hp5BMK2OFL8U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AUVGcOmOUjlIDsvLAttfC/hcC4DuUctB6+BNpNYvY+xiU8Gl1XSlwxyf0C4qA5qqT AdCFBuWYa1UfhgXfwVuCHsY0KrDgQe35qxwFH4y86TgW+8AhgG3xaX0n0z5gDe4ye/ eH2fl50Ou3uw13uGc6Dms6aeO6Co3fHmnxBKNYm0= From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH v2 2/9] SUNRPC: Fix up typo in xdr_init_decode() Date: Tue, 24 Nov 2020 08:50:18 -0500 Message-Id: <20201124135025.1097571-3-trondmy@kernel.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201124135025.1097571-2-trondmy@kernel.org> References: <20201124135025.1097571-1-trondmy@kernel.org> <20201124135025.1097571-2-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust We already know that the head buffer and page are empty, so if there is any data, it is in the tail. Signed-off-by: Trond Myklebust --- net/sunrpc/xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c index b1cda6d85ded..bc7a622016ee 100644 --- a/net/sunrpc/xdr.c +++ b/net/sunrpc/xdr.c @@ -1060,7 +1060,7 @@ void xdr_init_decode(struct xdr_stream *xdr, struct xdr_buf *buf, __be32 *p, else if (buf->page_len != 0) xdr_set_page_base(xdr, 0, buf->len); else - xdr_set_iov(xdr, buf->head, buf->len); + xdr_set_iov(xdr, buf->tail, buf->len); if (p != NULL && p > xdr->p && xdr->end >= p) { xdr->nwords -= p - xdr->p; xdr->p = p; -- 2.28.0