OSDN Git Service

block: remove blk_free_devt in add_partition
authorweiping zhang <zhangweiping@didichuxing.com>
Fri, 18 Aug 2017 15:54:46 +0000 (23:54 +0800)
committerJens Axboe <axboe@kernel.dk>
Thu, 24 Aug 2017 14:26:57 +0000 (08:26 -0600)
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: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/partition-generic.c

index 1745a96..86e8fe1 100644 (file)
@@ -403,7 +403,6 @@ out_del:
        device_del(pdev);
 out_put:
        put_device(pdev);
-       blk_free_devt(devt);
        return ERR_PTR(err);
 }