Re: 2.6.23-rc6-mm1: atomic counter underflow

Mariusz Kozlowski
2007-09-20T17:27:55Z

Hello,

> > -ECONFUSED. Perhaps DEBUG_DRIVER may help some more. Or /me getting
> > some sleep.
>
> Sleeping helped (improved reading abilities).
>
> From: Cornelia Huck <cornelia.huck@de.ibm.com>
>
> mmc: Avoid double sdio_unregister_bus() on module unload.
>
> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>

Ok - I can confirm that this patch fixes the problem.

Thanks,

Mariusz

> ---
> drivers/mmc/core/core.c | 1 -
> 1 files changed, 1 deletion(-)
>
> --- linux-2.6.orig/drivers/mmc/core/core.c
> +++ linux-2.6/drivers/mmc/core/core.c
> @@ -820,7 +820,6 @@ static void __exit mmc_exit(void)
> {
> sdio_unregister_bus();
> mmc_unregister_key_type();
> - sdio_unregister_bus();
> mmc_unregister_host_class();
> mmc_unregister_bus();
> destroy_workqueue(workqueue);