Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a34650f0 authored by Sonic Zhang's avatar Sonic Zhang Committed by Chris Ball
Browse files

mmc: bfin_sdh: fix alloc size for private data



The bfin_sdh driver allocates the wrong size for the private data
in the mmc_host.  The first parameter of mmc_alloc_host should be
the size of the local driver struct rather than the common mmc_host.

Signed-off-by: default avatarSonic Zhang <sonic.zhang@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
Cc: <stable@kernel.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 548f07d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -462,7 +462,7 @@ static int __devinit sdh_probe(struct platform_device *pdev)
		goto out;
		goto out;
	}
	}


	mmc = mmc_alloc_host(sizeof(*mmc), &pdev->dev);
	mmc = mmc_alloc_host(sizeof(struct sdh_host), &pdev->dev);
	if (!mmc) {
	if (!mmc) {
		ret = -ENOMEM;
		ret = -ENOMEM;
		goto out;
		goto out;