From patchwork Tue Oct 23 15:34:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Sorenson X-Patchwork-Id: 10653267 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F0B9514DE for ; Tue, 23 Oct 2018 15:35:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D991E29DC1 for ; Tue, 23 Oct 2018 15:35:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CE35B29DC7; Tue, 23 Oct 2018 15:35:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 790B729DAE for ; Tue, 23 Oct 2018 15:35:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbeJWX6z (ORCPT ); Tue, 23 Oct 2018 19:58:55 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35638 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726970AbeJWX6z (ORCPT ); Tue, 23 Oct 2018 19:58:55 -0400 Received: by mail-io1-f65.google.com with SMTP id 79-v6so1154228iou.2 for ; Tue, 23 Oct 2018 08:35:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=3/02nhonb/oks7I8v50KFdHCwoBtpIpLUFuodLP+v0I=; b=aWnBjN7wAql/uEMslEUJ1k/u+YKu+WnC9gBO8iGfEROSXrxxhPo+xRP7j7EkCFwBls eQ+aNkcQwdGtdKI6Xe8OKx72NgWs06aMWjA8x26p2AOV9mJOZLFZVP+VH1AomQXW2epw uSIwflz4D55TLBQbQfxjKAb7vCAvPszozj7+SO+cT2BTTKs2/M1oLmdUyiFaDoLTR1JR p+YnhJTtCXlLBcRD4JAmzVcJtOVIOhSkzG6UeITdQtC4BKSa9c7aVincSGckfExBYsjj Z6pEhAbptjcHT3XasPQ+A4K4NQSijt0AKY8Azd/b5ivIV7Ek2aPiWp1ezT9AOytSoQLn ypDg== X-Gm-Message-State: AGRZ1gJE5gnlvxTMuf79ayvKSTsr9p7O6CM9JbnwGUtH2ZF58I8/T/8d nqqkSIluKdMqJD0PqGBZuKi5Z87yXfo= X-Google-Smtp-Source: AJdET5e3ZcAowHoAu95n9Q4aGM8uM7dKjcdmQ2O4KhJcPh7e8fYvWOSCHUZf1eqv2UL7nADCQv9Eqw== X-Received: by 2002:a6b:c389:: with SMTP id t131-v6mr12094120iof.157.1540308901313; Tue, 23 Oct 2018 08:35:01 -0700 (PDT) Received: from hut.sorensonfamily.com (198-0-247-150-static.hfc.comcastbusiness.net. [198.0.247.150]) by smtp.gmail.com with ESMTPSA id s10-v6sm863727itb.38.2018.10.23.08.34.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Oct 2018 08:34:58 -0700 (PDT) To: linux-nfs , linux-fsdevel@vger.kernel.org From: Frank Sorenson Subject: [PATCH] NFS: change sign of nfs_fh length Message-ID: <85517ec3-e3d4-1bf3-8eea-cb274face1a7@redhat.com> Date: Tue, 23 Oct 2018 10:34:57 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Language: en-US Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The filehandle has a length which is defined as a 32-bit "unsigned integer". Change sign of the length appropriately. Signed-off-by: Frank Sorenson --- fs/nfs/nfs4xdr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) if (fh != NULL) memset(fh, 0, sizeof(*fh)); diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c index b7bde12d8cd5..2fc8f6fa25e4 100644 --- a/fs/nfs/nfs4xdr.c +++ b/fs/nfs/nfs4xdr.c @@ -3516,7 +3516,7 @@ static int decode_attr_exclcreat_supported(struct xdr_stream *xdr, static int decode_attr_filehandle(struct xdr_stream *xdr, uint32_t *bitmap, struct nfs_fh *fh) { __be32 *p; - int len; + u32 len;