From patchwork Wed Jan 15 05:55:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3490121 Return-Path: X-Original-To: patchwork-linux-mmc@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 AE7FE9F381 for ; Wed, 15 Jan 2014 05:59:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E5DFB2017D for ; Wed, 15 Jan 2014 05:59:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2990920179 for ; Wed, 15 Jan 2014 05:59:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751237AbaAOF7Z (ORCPT ); Wed, 15 Jan 2014 00:59:25 -0500 Received: from mail-pb0-f53.google.com ([209.85.160.53]:51612 "EHLO mail-pb0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751199AbaAOF7Y (ORCPT ); Wed, 15 Jan 2014 00:59:24 -0500 Received: by mail-pb0-f53.google.com with SMTP id ma3so676103pbc.12 for ; Tue, 14 Jan 2014 21:59:24 -0800 (PST) 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=TfQMHLsUDCD48M4IaE7Km/KAsa1Vqn9vl5ZClAy+fug=; b=X2DVuO35QBuy9Qtlk/I+7U1ixgn1DGF2EhebQW3Goj0Q33ZAx/DY3vgIhYr0te4D19 D3U9NJ/rpFFBhTSXJSjP0d9SZCgKb+Rp1y0svb9yc6gokxNAMYqL6XaBl56JvmrKu/TX kwgquroJ9UwYu9cM8CV+wngX79m+zsSANfMBTQbcN/65GZiHbX5jpsqYH15AHMc01pjm gVjo0hk8BP2sy34qfWg0e93Hhth71t1JhEnQc+8AGO8cG+dwv6ZiuSpv2qtxERr8gJvH Wi0rWqrkb6wkZLnnBoLNZbnyMpNZyIOZ8aKTQIFwX5w/zWDaGnzA3cDgw+JU+W6XmORJ dqdA== X-Gm-Message-State: ALoCoQkST3ZVHQrA/G7zUfr+/sXVHyc4CcdTcevcDfKZ+DTDiKL7GLX1egWy/n75i72A/1wLDxdW X-Received: by 10.66.148.134 with SMTP id ts6mr297982pab.113.1389765564479; Tue, 14 Jan 2014 21:59:24 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id kk1sm5423001pbd.22.2014.01.14.21.59.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:23 -0800 (PST) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: chris@printf.net, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH Resend 1/9] mmc: ushc: Fix incorrect parameter in sizeof Date: Wed, 15 Jan 2014 11:25:05 +0530 Message-Id: <1389765313-16744-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.2 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 --- Resending this series once again as it hasn't received Chris' attention during the previous re-sends. Hope Chris will pick it up atleast this time considering it is pending since a few months now and has been acked by the concerned people. --- 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 c0105a2e269a..d2c386f09d69 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;