Re: [PATCH] mmc: bfin_sdh: fix alloc size for private data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mike, Sonic,

On Tue, Jan 11, 2011 at 10:39:35PM -0500, Mike Frysinger wrote:
> From: Sonic Zhang <sonic.zhang@xxxxxxxxxx>
> 
> 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.
>  
> -	mmc = mmc_alloc_host(sizeof(*mmc), &pdev->dev);
> +	mmc = mmc_alloc_host(sizeof(*host), &pdev->dev);

Thanks, I'll add a stable tag and merge as a .38 fix.  Mind if we
use "mmc_alloc_host(sizeof(struct sdh_host), &pdev-dev);" instead?

-- 
Chris Ball   <cjb@xxxxxxxxxx>   <http://printf.net/>
One Laptop Per Child
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux