From patchwork Thu Sep 12 08:14:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2876871 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 6A98BBF43F for ; Thu, 12 Sep 2013 08:32:32 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 099AA202D9 for ; Thu, 12 Sep 2013 08:32:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7F03B20257 for ; Thu, 12 Sep 2013 08:32:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751939Ab3ILIc2 (ORCPT ); Thu, 12 Sep 2013 04:32:28 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:44612 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750935Ab3ILIc1 (ORCPT ); Thu, 12 Sep 2013 04:32:27 -0400 Received: by mail-pd0-f171.google.com with SMTP id g10so10378763pdj.30 for ; Thu, 12 Sep 2013 01:32:26 -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=BQV1GDdyB+x6ayiM2mWcMuMVGW44Jk9ZkptJDaln93M=; b=ReA7T5W/cFoEAYzKMogKuHRyCP/CO1lmnaqPcdC5YnHVzlOMyFPfh66tpSanTisdBj Bglp+oEnFzYXVeG81FkasmkBOxAplbxp0+pL+Q2yf3+Gz3J4QIcUBtTIBoWOsUe8Ip8O meWIExd45KgfWJQYJ5u4HSoe6bUAfARVTBah4qd+ZdFcyEEK4Jgk49iC5mQBWeH66cS8 FCbz0y/JkLaCZh8W0SBHCojtkB8EebLUNw/RporCasKc3mRqjq8keYYc3yBOx/qqEjwU lUlPDt8l/5DZX0BLfFZJ3r6qV59ltyzaWtOSaMvq6Qf74bl9f5GUR1IlhAIN1j7z2RN9 h5jg== X-Gm-Message-State: ALoCoQmRygsYZJ7/hTtGOL1q8+bF4PYtMR6KVCyhv+vb1sp2crEsTeovMnII03yvLLsKsLUINQdi X-Received: by 10.68.234.102 with SMTP id ud6mr6440402pbc.50.1378974746904; Thu, 12 Sep 2013 01:32:26 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id nj9sm3247340pbc.13.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Sep 2013 01:32:26 -0700 (PDT) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: cjb@laptop.org, sachin.kamat@linaro.org, David Vrabel Subject: [PATCH 1/1] mmc: ushc: Fix incorrect parameter in sizeof Date: Thu, 12 Sep 2013 13:44:13 +0530 Message-Id: <1378973653-12750-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.8 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 --- Compile tested. --- 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;