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: 25265 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f71.google.com (mail-pa0-f71.google.com [209.85.220.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9F5DC20543 for ; Tue, 25 Feb 2014 09:54:14 +0000 (UTC) Received: by mail-pa0-f71.google.com with SMTP id kp14sf22064380pab.6 for ; Tue, 25 Feb 2014 01:54:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=+ooFAgjVs1oFR6u9MED0kvBFHHw07GkYXIfDfaGAC4M=; b=Bn33k7pcm7DTkAsvN9YUXM6Y72RPsbhtHb2NqaeFXEFIu0aPOEoN/ZmWlQaevldOIz Vbl1Tf0ZGaoUEQAak0zVfOZq0O11fYRmCJRAe8pZ4W82rf6ia5oM/Wya+3VTjyAIYl0S mS3AalTufy9iteTJKKnuPqJcWIBbMrkxJ8QoM1nxfPsRuorOo1ABXSOzyjo30DnpWbqR O4J44kBVF+T8LKar7qN/PzoGYlhBMTrjPV91q0IxrVXSm5oP61WphW+bz+TrknjN5GML KbVB7GQnhyCrbxzoGD7xD+Pltr7M4cfP7dWVp+dx/ZhRSA5sYclIX1S5bfNfGECT237I YcUQ== X-Gm-Message-State: ALoCoQmzIeDRWn5kga2EeU5XpOZh3BZgTzYfzqZk53NNAlKwq89NPosz+asfdcEi5paMi7+yCkmw X-Received: by 10.66.222.105 with SMTP id ql9mr210391pac.9.1393322053778; Tue, 25 Feb 2014 01:54:13 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.85.35 with SMTP id m32ls2337448qgd.81.gmail; Tue, 25 Feb 2014 01:54:13 -0800 (PST) X-Received: by 10.221.29.196 with SMTP id rz4mr327800vcb.8.1393322053637; Tue, 25 Feb 2014 01:54:13 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id tt2si6658713vdc.100.2014.02.25.01.54.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 25 Feb 2014 01:54:13 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so6976432vcb.39 for ; Tue, 25 Feb 2014 01:54:13 -0800 (PST) X-Received: by 10.58.243.3 with SMTP id wu3mr313679vec.12.1393322053556; Tue, 25 Feb 2014 01:54:13 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp125488vcz; Tue, 25 Feb 2014 01:54:13 -0800 (PST) X-Received: by 10.68.159.228 with SMTP id xf4mr5602265pbb.74.1393322052753; Tue, 25 Feb 2014 01:54:12 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xn1si3064032pbc.128.2014.02.25.01.54.12; Tue, 25 Feb 2014 01:54:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751066AbaBYJyK (ORCPT + 7 others); 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-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: list List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;