]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/partitions/check.c
block: fix bug in ptbl lookup cache
[linux-2.6-omap-h63xx.git] / fs / partitions / check.c
index 5198ada67398f83019066002a733fdc54a5b8f90..6d720243f5f4a29a43a7b50dd005bbff32a7b0aa 100644 (file)
@@ -334,6 +334,7 @@ void delete_partition(struct gendisk *disk, int partno)
 
        blk_free_devt(part_devt(part));
        rcu_assign_pointer(ptbl->part[partno], NULL);
+       rcu_assign_pointer(ptbl->last_lookup, NULL);
        kobject_put(part->holder_dir);
        device_del(part_to_dev(part));