From patchwork Tue Feb 22 22:43:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benny Halevy X-Patchwork-Id: 582451 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 p1MMhRQD026950 for ; Tue, 22 Feb 2011 22:43:29 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752673Ab1BVWn0 (ORCPT ); Tue, 22 Feb 2011 17:43:26 -0500 Received: from daytona.panasas.com ([67.152.220.89]:27802 "EHLO daytona.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752642Ab1BVWn0 (ORCPT ); Tue, 22 Feb 2011 17:43:26 -0500 Received: from lt.bhalevy.com.com ([172.17.142.144]) by daytona.panasas.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 22 Feb 2011 17:43:25 -0500 From: Benny Halevy To: " J. Bruce Fields" Cc: linux-nfs@vger.kernel.org, Benny Halevy , Chuck Lever Subject: [PATCH] NFSD: fix decode_cb_sequence4resok Date: Tue, 22 Feb 2011 14:43:22 -0800 Message-Id: <1298414602-17029-1-git-send-email-bhalevy@panasas.com> X-Mailer: git-send-email 1.7.3.4 X-OriginalArrivalTime: 22 Feb 2011 22:43:25.0417 (UTC) FILETIME=[EA83C590:01CBD2E1] 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]); Tue, 22 Feb 2011 22:43:29 +0000 (UTC) diff --git a/fs/nfsd/nfs4callback.c b/fs/nfsd/nfs4callback.c index da54498..d046bdb 100644 --- a/fs/nfsd/nfs4callback.c +++ b/fs/nfsd/nfs4callback.c @@ -592,7 +592,7 @@ static int decode_cb_sequence4resok(struct xdr_stream *xdr, * If the server returns different values for sessionID, slotID or * sequence number, the server is looney tunes. */ - p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN + 4 + 4); + p = xdr_inline_decode(xdr, NFS4_MAX_SESSIONID_LEN + 4 + 4 + 4 + 4); if (unlikely(p == NULL)) goto out_overflow; memcpy(id.data, p, NFS4_MAX_SESSIONID_LEN);