From patchwork Wed Jan 12 03:39:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 473071 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0C8XI1k022364 for ; Wed, 12 Jan 2011 08:33:28 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932772Ab1ALDbn (ORCPT ); Tue, 11 Jan 2011 22:31:43 -0500 Received: from smtp.gentoo.org ([140.211.166.183]:54583 "EHLO smtp.gentoo.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932743Ab1ALDbm (ORCPT ); Tue, 11 Jan 2011 22:31:42 -0500 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 882241B402A; Wed, 12 Jan 2011 03:31:41 +0000 (UTC) From: Mike Frysinger To: linux-mmc@vger.kernel.org, Chris Ball Cc: uclinux-dist-devel@blackfin.uclinux.org, Sonic Zhang Subject: [PATCH] mmc: bfin_sdh: fix alloc size for private data Date: Tue, 11 Jan 2011 22:39:35 -0500 Message-Id: <1294803575-24087-1-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 1.7.4.rc1 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Wed, 12 Jan 2011 08:33:28 +0000 (UTC) diff --git a/drivers/mmc/host/bfin_sdh.c b/drivers/mmc/host/bfin_sdh.c index bac7d62..9193e06 100644 --- a/drivers/mmc/host/bfin_sdh.c +++ b/drivers/mmc/host/bfin_sdh.c @@ -462,7 +462,7 @@ static int __devinit sdh_probe(struct platform_device *pdev) goto out; } - mmc = mmc_alloc_host(sizeof(*mmc), &pdev->dev); + mmc = mmc_alloc_host(sizeof(*host), &pdev->dev); if (!mmc) { ret = -ENOMEM; goto out;