Re: [PATCH] mmc: hsmmc: Fix NULL pointer dereference on unload when booted with device tree

Balaji T K
2012-11-12T13:20:12Z

On Friday 09 November 2012 11:55 PM, Tony Lindgren wrote:
> When booting with device tree, we don't have any pdata, and will
> get the following when trying to unload omap_hsmmc:
>
> Unable to handle kernel NULL pointer dereference at virtual address 00000044
> pgd = edafc000
> *pgd=adbbd831, *pte=00000000, *ppte=00000000
> SMP ARM
> Modules linked in: omap_hsmmc(-) omap_serial pinctrl_single
> CPU: 1 Not tainted (3.7.0-rc4-00044-g8ca5f6a-dirty #245)
> PC is at omap_hsmmc_gpio_free+0x8/0x3c [omap_hsmmc]
> LR is at omap_hsmmc_remove+0xf0/0x174 [omap_hsmmc]
<snip>
>
> Signed-off-by: Tony Lindgren <tony@atomide.com>
>
> ---
>
> This is against v3.7-rc4, would be nice to get in during the -rc cycle.
>
Hi Tony,

Got fixed by below commit, merged in rc5