[PATCH] dm: fix idr minor allocation