diff options
Diffstat (limited to 'block/genhd.c')
| -rw-r--r-- | block/genhd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/genhd.c b/block/genhd.c index 129ad939f9dd..b922d4801c87 100644 --- a/block/genhd.c +++ b/block/genhd.c | |||
| @@ -660,6 +660,8 @@ dev_t blk_lookup_devt(const char *name, int part) | |||
| 660 | 660 | ||
| 661 | mutex_lock(&block_class_lock); | 661 | mutex_lock(&block_class_lock); |
| 662 | list_for_each_entry(dev, &block_class.devices, node) { | 662 | list_for_each_entry(dev, &block_class.devices, node) { |
| 663 | if (dev->type != &disk_type) | ||
| 664 | continue; | ||
| 663 | if (strcmp(dev->bus_id, name) == 0) { | 665 | if (strcmp(dev->bus_id, name) == 0) { |
| 664 | struct gendisk *disk = dev_to_disk(dev); | 666 | struct gendisk *disk = dev_to_disk(dev); |
| 665 | 667 | ||
