From patchwork Tue Feb 25 09:48:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 3714231 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 933359F2ED for ; Tue, 25 Feb 2014 09:54:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CBDCA2016C for ; Tue, 25 Feb 2014 09:54:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 053C82013D for ; Tue, 25 Feb 2014 09:54:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751066AbaBYJyK (ORCPT ); Tue, 25 Feb 2014 04:54:10 -0500 Received: from mail-pb0-f45.google.com ([209.85.160.45]:53675 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750708AbaBYJyJ (ORCPT ); Tue, 25 Feb 2014 04:54:09 -0500 Received: by mail-pb0-f45.google.com with SMTP id un15so7863334pbc.32 for ; Tue, 25 Feb 2014 01:54:08 -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=IWHn33C3SwFSBHUsjqW/Z25Ntd7sddc231fcG+HTP/E=; b=eiu08VYoOYmsSB14cmJHBZ+l9E2O7ll2hKyI9MqX7QegHEWFkQFQBpqqap7UZtcdRT RqqgccboxuGuyg4FLlb4JvwjF0RBDdO0zBYKPdTeosAsiAnBii7QgL5MoCm1Ok8xm3IC ZsgOBAAU5oxY+KTLv53YdluTssWOrgUFbyS2fT4UovqtEdEhPb6+xe+Rk/LB1FG2rmdP GKY9QXewmsbvZ4gQIRLbCvAzIOXw0RuNI6sOqP0yqs/30UJuWPGiNAMajqNyk5/u71MG JgwnqScRJChktJ2/cCwj+a80HT7N4x+JtLWSTd/Qz420/IYJHQUbbkV/rTekcfwl2ght JqeA== X-Gm-Message-State: ALoCoQlxr9gwE0qaNF9GOkEIGEZbShxzk1qU+eha1mRvSulunhKKrG/bzoUIXaoGJ6O6gN+bzrCc X-Received: by 10.66.241.73 with SMTP id wg9mr589480pac.69.1393322048844; Tue, 25 Feb 2014 01:54:08 -0800 (PST) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id qq5sm8804447pbb.24.2014.02.25.01.54.06 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 01:54:08 -0800 (PST) From: Sachin Kamat To: linux-mmc@vger.kernel.org Cc: ulf.hansson@linaro.org, chris@printf.net, sachin.kamat@linaro.org Subject: [PATCH Resend 01/10] mmc: ushc: Fix incorrect parameter in sizeof Date: Tue, 25 Feb 2014 15:18:19 +0530 Message-Id: <1393321708-9719-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=-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 sizeof should be of the parent structure type. Signed-off-by: Sachin Kamat Acked-by: Ulf Hansson --- Hi Ulf / Chris, This series which is a re-send has been pending since a very long time. Hope to have this merged atleast during this cycle. --- 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;