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: 23212 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 912DC202FA for ; Wed, 15 Jan 2014 05:59:27 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id i72sf2225185yha.7 for ; Tue, 14 Jan 2014 21:59:26 -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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=TfQMHLsUDCD48M4IaE7Km/KAsa1Vqn9vl5ZClAy+fug=; b=bA820fpLj9CpFFmDQyc4dODwEMJh8AC1XWyqni6XuuIX5Tbua1qRlhjFP+/gpQ9RMP cSLt3zyXX6JHyEhbmkOmDt9NJqONeVJH5wWW5yxxOUMC1ul1Va1rL6STssuFbLJnS6Nj NWyfNzU4iHN5SuUaNUqckPNaAzldHoUDWpOhtI1A6SnHWAg9/CRX5qQxqJLy6JrL8h8D q1NVM8cAyEJXXfXFhrE5ZWoabwgAWlbm4gEiMvVutQ9d+0KYglif2YL/I0FmP2/7Q5D6 ijBddWGBZV70NsR+mpk85OGB5hzgbJxK2G6wDW/TKHDbcFzA4fLsNAYf4kZje5+wjVc+ HlAA== X-Gm-Message-State: ALoCoQkPWa45891qBQ7Id2jDR72Uybcy5ypyBn5rxmrV77IPku+wk/g7rcleNyhFQTFpBy+LUNqC X-Received: by 10.58.38.137 with SMTP id g9mr244065vek.6.1389765566610; Tue, 14 Jan 2014 21:59:26 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.98 with SMTP id lj2ls481791qeb.45.gmail; Tue, 14 Jan 2014 21:59:26 -0800 (PST) X-Received: by 10.221.42.8 with SMTP id tw8mr207360vcb.12.1389765566524; Tue, 14 Jan 2014 21:59:26 -0800 (PST) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id ja16si1173974vec.50.2014.01.14.21.59.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:26 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id c14so236163vea.19 for ; Tue, 14 Jan 2014 21:59:26 -0800 (PST) X-Received: by 10.220.139.136 with SMTP id e8mr193799vcu.34.1389765566452; Tue, 14 Jan 2014 21:59:26 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp250995ved; Tue, 14 Jan 2014 21:59:25 -0800 (PST) X-Received: by 10.66.228.201 with SMTP id sk9mr404517pac.134.1389765564875; Tue, 14 Jan 2014 21:59:24 -0800 (PST) Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by mx.google.com with ESMTPS id bc9si2638885pbd.251.2014.01.14.21.59.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Jan 2014 21:59:24 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.47 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.47; Received: by mail-pa0-f47.google.com with SMTP id kp14so683568pab.6 for ; Tue, 14 Jan 2014 21:59:24 -0800 (PST) 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 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.128.174 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 Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: 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 --- 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;