]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - block/genhd.c
Merge branch 'next' of git://git.monstr.eu/linux-2.6-microblaze
[mv-sheeva.git] / block / genhd.c
index 83e7c04015e1f920c813917bff937b4735902480..23b4f7063322c303dd5a1ab15c66a3a62daca7ca 100644 (file)
@@ -614,7 +614,7 @@ void add_disk(struct gendisk *disk)
         * Take an extra ref on queue which will be put on disk_release()
         * so that it sticks around as long as @disk is there.
         */
-       WARN_ON_ONCE(blk_get_queue(disk->queue));
+       WARN_ON_ONCE(!blk_get_queue(disk->queue));
 
        retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj,
                                   "bdi");