X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=block%2Fpartition-generic.c;h=0d9e5f97f0a8afaa397530a77684bacc7b22ab26;hb=29a7d1795a0376beee6c0f7515fae3789277e03e;hp=ae95ee6a58aad6d005affa10bb270bdf1008e986;hpb=3132f623386e9ac87077bd839e726f7b940fbc94;p=karo-tx-linux.git diff --git a/block/partition-generic.c b/block/partition-generic.c index ae95ee6a58aa..0d9e5f97f0a8 100644 --- a/block/partition-generic.c +++ b/block/partition-generic.c @@ -211,6 +211,7 @@ static const struct attribute_group *part_attr_groups[] = { static void part_release(struct device *dev) { struct hd_struct *p = dev_to_part(dev); + blk_free_devt(dev->devt); free_part_stats(p); free_part_info(p); kfree(p); @@ -253,11 +254,9 @@ void delete_partition(struct gendisk *disk, int partno) rcu_assign_pointer(ptbl->last_lookup, NULL); kobject_put(part->holder_dir); device_del(part_to_dev(part)); - blk_free_devt(part_devt(part)); hd_struct_put(part); } -EXPORT_SYMBOL(delete_partition); static ssize_t whole_disk_show(struct device *dev, struct device_attribute *attr, char *buf)