From patchwork Fri Jun 10 06:32:03 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Moore X-Patchwork-Id: 867862 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.4) with ESMTP id p5A6WDr8025540 for ; Fri, 10 Jun 2011 06:32:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751681Ab1FJGcG (ORCPT ); Fri, 10 Jun 2011 02:32:06 -0400 Received: from mail-gx0-f174.google.com ([209.85.161.174]:61209 "EHLO mail-gx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752340Ab1FJGcE (ORCPT ); Fri, 10 Jun 2011 02:32:04 -0400 Received: by gxk21 with SMTP id 21so1435137gxk.19 for ; Thu, 09 Jun 2011 23:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=wp+jloXi0vswZJCmiJzMiwxkTktkAIetoWTwoeATBrM=; b=enFr0fXN+XSvkB0M8krhbPP1ovghuzaNffdotcmFL5hLiQkxs9JXUOoRer79ou17YQ zQROMYk89+5eE4rY57fwg03/wQsiikhVTB2wXxF2EOGdOpAAMUBpss2okPnReteMnDEk 8m3SHKN38bPaKWfB3l53M4uODlu2QzUVjQGo8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=s/sezYZXRmhsylHzJ6Qi01qeWCQRWRAwoXnIgf1VULWTZNdsEpTqzLqfRdpCvSYZ7w jMlQJ3eFmMJkqw6RXlJmTKnprUPsSSSyXwkDXmCbEXPalCqAE9pqu5yU2yxSoP+KUzxp bp8+DqRK4fTmo36QFV3q3UNdZeiF8mdvo4F9U= MIME-Version: 1.0 Received: by 10.236.189.66 with SMTP id b42mr1996270yhn.520.1307687523753; Thu, 09 Jun 2011 23:32:03 -0700 (PDT) Received: by 10.236.116.194 with HTTP; Thu, 9 Jun 2011 23:32:03 -0700 (PDT) Date: Fri, 10 Jun 2011 14:32:03 +0800 Message-ID: Subject: [patch 1/1]: fix bug in CREATE_SESSION encoding From: Sid Moore To: linux-nfs@vger.kernel.org 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]); Fri, 10 Jun 2011 06:32:13 +0000 (UTC) Hi I think it might be an error when typing. see the patch below. *p++ = cpu_to_be32(args->bc_attrs.max_resp_sz); /* max resp size */ *p++ = cpu_to_be32(args->bc_attrs.max_resp_sz_cached); /* Max resp sz cached */ --- Sid -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -1772,7 +1772,7 @@ static void encode_create_session(struct xdr_stream *xdr, *p++ = cpu_to_be32(0); /* rdmachannel_attrs */ /* Back Channel */ - *p++ = cpu_to_be32(args->fc_attrs.headerpadsz); /* header padding size */ + *p++ = cpu_to_be32(args->bc_attrs.headerpadsz); /* header padding size */ *p++ = cpu_to_be32(args->bc_attrs.max_rqst_sz); /* max req size */