From patchwork Wed Oct 30 11:43:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3114441 Return-Path: X-Original-To: patchwork-linux-mmc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 445E5BF924 for ; Wed, 30 Oct 2013 11:50:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3209720268 for ; Wed, 30 Oct 2013 11:50:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 84B5820155 for ; Wed, 30 Oct 2013 11:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751786Ab3J3Lum (ORCPT ); Wed, 30 Oct 2013 07:50:42 -0400 Received: from mail-pb0-f44.google.com ([209.85.160.44]:51668 "EHLO mail-pb0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753958Ab3J3Lum (ORCPT ); Wed, 30 Oct 2013 07:50:42 -0400 Received: by mail-pb0-f44.google.com with SMTP id rp16so1262232pbb.17 for ; Wed, 30 Oct 2013 04:50:41 -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; bh=DH4j+6QhLxilnCt/+t42Cs+mzH30XlMiyNLg2c/hvQM=; b=kuRmeVNxer6igjv883MgUzCD0eyMKCKq0BeBaG4zPylxTsXHmB6EQ32frn2HaTTL7t dprXcaGmNE3R1xAWHmFnUzuhVWtIs05YOePsdP37fpMmhT60Df3HegOhsZDvP/k2CRJD zvGEFLjla4u2kYgaBGvNZmNhCDjA9MKTNYyfBKETUNWm38mXYRfH1JrW6a3Uc4T6cg14 uRmcoZ/EbRZlwWJqc7qBa++ZOhjpj4IK2ekSWPf6EW7tRqgRvxp2h7i4Cxk26/dV1iQu 6JxgJEZjFYG2wbea9LW3mTQB8c8iHEjHymt6PftiUOu85QxCKJJNWZR1wWPsJ89Ey10z dY4Q== X-Gm-Message-State: ALoCoQnPPNCXgt7LsDSM3DgDPZD4mP2Uzc0xgRgk+52jGJOoMLuoRFJ85RNK/WrzvkVJqbqm7Qvq X-Received: by 10.68.170.225 with SMTP id ap1mr4569936pbc.117.1383133510381; Wed, 30 Oct 2013 04:45:10 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id xn12sm4294655pac.12.2013.10.30.04.45.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 30 Oct 2013 04:45:09 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, sachin.kamat@linaro.org, David Vrabel Subject: [PATCH Resend 1/7] mmc: ushc: Fix incorrect parameter in sizeof Date: Wed, 30 Oct 2013 17:13:44 +0530 Message-Id: <1383133430-22079-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-7.4 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 sizeof should be of the parent structure type. Signed-off-by: Sachin Kamat Cc: David Vrabel --- Chris, Resending the pending patches with appropriate acks. --- drivers/mmc/host/ushc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/ushc.c b/drivers/mmc/host/ushc.c index c0105a2..d2c386f 100644 --- a/drivers/mmc/host/ushc.c +++ b/drivers/mmc/host/ushc.c @@ -504,7 +504,7 @@ static int ushc_probe(struct usb_interface *intf, const struct usb_device_id *id ret = -ENOMEM; goto err; } - ushc->csw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); + ushc->csw = kzalloc(sizeof(struct ushc_csw), GFP_KERNEL); if (ushc->csw == NULL) { ret = -ENOMEM; goto err;