]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/partitions/check.c
block: use after free bug in __blkdev_get
[mv-sheeva.git] / fs / partitions / check.c
index fbeaddf595d3ce8c456c4a58a9b31698f51b6506..7b685e10cbad8cc9b052cec48737fbf7bf6f7afb 100644 (file)
@@ -581,7 +581,7 @@ try_scan:
                }
 
                if (from + size > get_capacity(disk)) {
-                       struct block_device_operations *bdops = disk->fops;
+                       const struct block_device_operations *bdops = disk->fops;
                        unsigned long long capacity;
 
                        printk(KERN_WARNING