From patchwork Fri Jul 25 09:26:25 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 4622051 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id D46389F36A for ; Fri, 25 Jul 2014 09:26:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E1C03201F4 for ; Fri, 25 Jul 2014 09:26:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1550E201E4 for ; Fri, 25 Jul 2014 09:26:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751439AbaGYJ0c (ORCPT ); Fri, 25 Jul 2014 05:26:32 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:63268 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750818AbaGYJ0b (ORCPT ); Fri, 25 Jul 2014 05:26:31 -0400 Received: by mail-la0-f45.google.com with SMTP id ty20so2841114lab.32 for ; Fri, 25 Jul 2014 02:26:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=mQ4wtV6BkJluoVqiLqaMsRfK6kHPfjr0//Zl8zwNQTA=; b=mX5bDu91IyrD6Vnmrz9KZIiUTgjZQ7DkfSD/s96OgeyvoD2kvBRgdIyK5z95D2j5Oc UOP6bJR/PtkE0ZC+/ljI+kHgPewtxuAFllWghLFDqEe0R+UDZnqnGB34HTt99uOKZXTJ HcGWKWZBYpg3rUn2vwZ/P2lWl6vyaDYOtiFxeE8Mzgudh3VeWXi38QL4HBvn/4Vvv1UM HqpASB/bNXdYubT3Avkh8FIR51qQsQkma5LLPlCv6FjrAsaen3wApEwARcQ0VKgQPu+C e6DOrtveH40P88rLGOaYpkuAp1YCeobMu2p4lJc4NymnAwaPMXexWMirYsvhkwnK4S13 8Paw== X-Gm-Message-State: ALoCoQmxtOzePC2PI4+mn0M9G1RPY9HVIX1TeQ4FW2SAG3tcSqBFtbQEihhd3r++xV/imXlAknqa X-Received: by 10.112.166.139 with SMTP id zg11mr14160444lbb.62.1406280388796; Fri, 25 Jul 2014 02:26:28 -0700 (PDT) Received: from localhost ([109.110.66.237]) by mx.google.com with ESMTPSA id ec17sm14750369lbb.24.2014.07.25.02.26.27 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 25 Jul 2014 02:26:28 -0700 (PDT) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Cc: Yan Zheng Subject: [PATCH] ceph: fix sizeof(struct tYpO *) typo Date: Fri, 25 Jul 2014 13:26:25 +0400 Message-Id: <1406280385-30275-1-git-send-email-ilya.dryomov@inktank.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP struct ceph_xattr -> struct ceph_inode_xattr Reported-by: Toralf Förster Signed-off-by: Ilya Dryomov Reviewed-by: Alex Elder --- fs/ceph/xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index f89698cdbc41..12f58d22e017 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -592,7 +592,7 @@ start: xattr_version = ci->i_xattrs.version; spin_unlock(&ci->i_ceph_lock); - xattrs = kcalloc(numattr, sizeof(struct ceph_xattr *), + xattrs = kcalloc(numattr, sizeof(struct ceph_inode_xattr *), GFP_NOFS); err = -ENOMEM; if (!xattrs)