diff options
Diffstat (limited to 'block/genhd.c')
-rw-r--r-- | block/genhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c index 02e9fca80825..c958169d24f0 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
@@ -615,7 +615,7 @@ void add_disk(struct gendisk *disk) | |||
615 | * Take an extra ref on queue which will be put on disk_release() | 615 | * Take an extra ref on queue which will be put on disk_release() |
616 | * so that it sticks around as long as @disk is there. | 616 | * so that it sticks around as long as @disk is there. |
617 | */ | 617 | */ |
618 | WARN_ON_ONCE(blk_get_queue(disk->queue)); | 618 | WARN_ON_ONCE(!blk_get_queue(disk->queue)); |
619 | 619 | ||
620 | retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, | 620 | retval = sysfs_create_link(&disk_to_dev(disk)->kobj, &bdi->dev->kobj, |
621 | "bdi"); | 621 | "bdi"); |