From patchwork Thu Dec 19 08:43:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3375691 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 76E6DC0D4A for ; Thu, 19 Dec 2013 08:46:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C30A2060F for ; Thu, 19 Dec 2013 08:46:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 242162060E for ; Thu, 19 Dec 2013 08:46:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751627Ab3LSIqw (ORCPT ); Thu, 19 Dec 2013 03:46:52 -0500 Received: from mail-pd0-f182.google.com ([209.85.192.182]:37098 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751394Ab3LSIqv (ORCPT ); Thu, 19 Dec 2013 03:46:51 -0500 Received: by mail-pd0-f182.google.com with SMTP id v10so841418pde.13 for ; Thu, 19 Dec 2013 00:46:51 -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=olquVfLK8VNZ34JTuwnIJ0SWgwQwIAT17Ncv2Hdf/QA=; b=l7UwUouMZ2wJXvfnEeVgZFxCqyg6Xn0DMcajqK9xbLfZexnYHooG3AnZUR6g4vVNV3 Z/zNCzARicLXBrDF8Mos/dr3ROfQ6yt6+ZXypR/y1YnAH+stjBC1dpXa57wwApC4jelE F2VYNsLeGbga/EW320YTeNfdJVINHOXhFSI2XzrnpRUXl2zXZf6I8q/7HNmtuzBIQwJN 0ynMCusUnAefDACGszkD/CoXFEHxgZIpv7MEufBTVNaTxCmbT+DGtoaDVoVqYVM9UqgH iHSOaS8HqsKP5AqRjgVLQELf2odgi1YLMiJWo/IKbn6dZiyw08ZRXg+oqO14zBeTFLRH KqFg== X-Gm-Message-State: ALoCoQnEUhdvvmeOKIDUF3zco+ySV9nat5HHTSky/I2+4joiVZxrSKCdigJP1C4IHu9nlsloZx5O X-Received: by 10.66.7.68 with SMTP id h4mr421805paa.0.1387442811488; Thu, 19 Dec 2013 00:46:51 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id oc9sm5520341pbb.10.2013.12.19.00.46.48 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 19 Dec 2013 00:46:50 -0800 (PST) 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: Thu, 19 Dec 2013 14:13:28 +0530 Message-Id: <1387442614-4193-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 --- 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;