PCI: dwc: Fix inverted condition of DMA mask setup warning
[linux-2.6-microblaze.git] / block / blk-zoned.c
index 81152a2..6817a67 100644 (file)
@@ -498,6 +498,9 @@ int blk_revalidate_disk_zones(struct gendisk *disk,
        if (WARN_ON_ONCE(!queue_is_mq(q)))
                return -EIO;
 
+       if (!get_capacity(disk))
+               return -EIO;
+
        /*
         * Ensure that all memory allocations in this context are done as if
         * GFP_NOIO was specified.