Skip to content

Commit

Permalink
greybus: sdio: change the order of remove and free mmc host
Browse files Browse the repository at this point in the history
The mmc host should be removed frist. Then it
will be freed.

Signed-off-by: Phong Tran <[email protected]>
Reviewed-by: Rui Miguel Silva <[email protected]>
Reviewed-by: Mark Greer <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
phongt authored and gregkh committed Jun 30, 2015
1 parent 153f478 commit 9b86bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/greybus/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ static void gb_sdio_connection_exit(struct gb_connection *connection)

flush_workqueue(gb_sdio_mrq_workqueue);
destroy_workqueue(gb_sdio_mrq_workqueue);
mmc_free_host(mmc);
mmc_remove_host(mmc);
mmc_free_host(mmc);
kfree(host->xfer_buffer);
}

Expand Down

0 comments on commit 9b86bdf

Please sign in to comment.