Commit 1dff3144 authored by Committed by Pierre Ossman
mmc: Avoid re-using minor numbers before the original device is closed.
Move the code which marks the minor number as free to mmc_blk_put() so that it happens on the final close() (or removal), instead of doing it at removal even when the device is still logically open. Signed-off-by: David Woodhouse <firstname.lastname@example.org> Signed-off-by: Pierre Ossman <email@example.com>
Showing with 6 additions and 8 deletions