Skip to content
Snippets Groups Projects
Commit 47570848 authored by weiping zhang's avatar weiping zhang Committed by Jens Axboe
Browse files

block: remove blk_free_devt in add_partition


put_device(pdev) will call pdev->type->release finally, and blk_free_devt
has been called in part_release(), so remove it.

Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 97e05463
No related branches found
No related tags found
No related merge requests found
......@@ -403,7 +403,6 @@ struct hd_struct *add_partition(struct gendisk *disk, int partno,
device_del(pdev);
out_put:
put_device(pdev);
blk_free_devt(devt);
return ERR_PTR(err);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment