From patchwork Wed Sep 19 08:36:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovsky X-Patchwork-Id: 1476421 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0817EDF238 for ; Wed, 19 Sep 2012 08:37:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969Ab2ISIhE (ORCPT ); Wed, 19 Sep 2012 04:37:04 -0400 Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:34974 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752877Ab2ISIhC (ORCPT ); Wed, 19 Sep 2012 04:37:02 -0400 Received: by lagy9 with SMTP id y9so513670lag.19 for ; Wed, 19 Sep 2012 01:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:x-mailer; bh=AcZoP1FmYPvhcgA2oxDn5kDBWHgIiwCfCoaB7d7Fd3c=; b=LBG6hJqE9lOCfmvY4plvrdYYRDEGiPIFKnGgf5SxsOmXfA4EJWQ0XC7zon5iwTOHfM DguXN+zsK0Z91P17fyEsvftsUQIy5A3l9ElirYXRTEE95XZX6YJFio4+Eo11G/AR26bz nVSWsJtYU5wK2XusVlKHPkvAiU+w2rBZ8QYsaDMPNICAT278qul0ZYN7UXbWe3FDA4Ha 2cbyNYRm9O4pmVsp/EIwgUt3URuWJjxuSXLBwSq1kyqVTsQBFUl2rZu9qtoBTVssgGP7 1zPLYaAuHOpJLpVLgcE3zXyy9dpZ8EebyALo7a4kvkPCxTrd36waxwO/2f5mZkKa6xHx gBuA== Received: by 10.112.46.98 with SMTP id u2mr785283lbm.107.1348043821001; Wed, 19 Sep 2012 01:37:01 -0700 (PDT) Received: from localhost.localdomain ([178.45.135.74]) by mx.google.com with ESMTPS id p7sm592423lbg.17.2012.09.19.01.36.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Sep 2012 01:36:59 -0700 (PDT) From: Pavel Shilovsky To: linux-cifs@vger.kernel.org Subject: [PATCH] CIFS: Fix endian conversion of IndexNumber Date: Wed, 19 Sep 2012 12:36:52 +0400 Message-Id: <1348043812-11375-1-git-send-email-piastry@etersoft.ru> X-Mailer: git-send-email 1.7.5.4 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org by making it __le64 rather than __u64 in FILE_AL_INFO structure. Signed-off-by: Pavel Shilovsky --- fs/cifs/cifspdu.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/cifs/cifspdu.h b/fs/cifs/cifspdu.h index 3fb03e2..b9d59a9 100644 --- a/fs/cifs/cifspdu.h +++ b/fs/cifs/cifspdu.h @@ -2210,7 +2210,7 @@ typedef struct { /* data block encoding of response to level 263 QPathInfo */ __u8 DeletePending; __u8 Directory; __u16 Pad2; - __u64 IndexNumber; + __le64 IndexNumber; __le32 EASize; __le32 AccessFlags; __u64 IndexNumber1;