diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index b3fa9c91614242712829b46aa92453a8dafc7fbb..6a51f7a06ce7ffe6f44aa65be62bb1d5117125d7 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -429,8 +429,6 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev) if (mmc_gpio_alloc(host)) { put_device(&host->class_dev); - ida_simple_remove(&mmc_host_ida, host->index); - kfree(host); return NULL; }