From patchwork Wed Apr 6 23:06:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Fields X-Patchwork-Id: 691221 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p36N6ZxQ031146 for ; Wed, 6 Apr 2011 23:06:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756976Ab1DFXGe (ORCPT ); Wed, 6 Apr 2011 19:06:34 -0400 Received: from fieldses.org ([174.143.236.118]:39841 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756826Ab1DFXGc (ORCPT ); Wed, 6 Apr 2011 19:06:32 -0400 Received: from bfields by fieldses.org with local (Exim 4.72) (envelope-from ) id 1Q7bo0-0001jC-DN; Wed, 06 Apr 2011 19:06:32 -0400 From: "J. Bruce Fields" To: linux-nfs@vger.kernel.org Cc: "J. Bruce Fields" Subject: [PATCH 3/7] svcrpc: note network-order types in svc_process_calldir Date: Wed, 6 Apr 2011 19:06:22 -0400 Message-Id: <1302131186-6578-4-git-send-email-bfields@redhat.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1302131186-6578-1-git-send-email-bfields@redhat.com> References: <1302131186-6578-1-git-send-email-bfields@redhat.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 06 Apr 2011 23:06:39 +0000 (UTC) Signed-off-by: J. Bruce Fields --- net/sunrpc/svcsock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 828fff7..2053259 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c @@ -976,9 +976,9 @@ static int svc_process_calldir(struct svc_sock *svsk, struct svc_rqst *rqstp, struct rpc_rqst **reqpp, struct kvec *vec) { struct rpc_rqst *req = NULL; - u32 *p; - u32 xid; - u32 calldir; + __be32 *p; + __be32 xid; + __be32 calldir; int len; len = svc_recvfrom(rqstp, vec, 1, 8);