X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=block%2Fgenhd.c;h=b922d4801c87d0f6951f86f8deae3fc32bbd03d7;hb=6703f6d10dcd3316e03641a5ecaa6c8a04374d98;hp=129ad939f9dd7179cab6da67497133cafee7156f;hpb=551395ae667d699189014f762355e9131fc03e79;p=linux-2.6-omap-h63xx.git diff --git a/block/genhd.c b/block/genhd.c index 129ad939f9d..b922d4801c8 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -660,6 +660,8 @@ dev_t blk_lookup_devt(const char *name, int part) mutex_lock(&block_class_lock); list_for_each_entry(dev, &block_class.devices, node) { + if (dev->type != &disk_type) + continue; if (strcmp(dev->bus_id, name) == 0) { struct gendisk *disk = dev_to_disk(dev);