block: bd_start_claiming fix module refcount
[safe/jmp/linux-2.6] / fs / block_dev.c
index 7346c96..204a763 100644 (file)
@@ -734,6 +734,7 @@ static struct block_device *bd_start_claiming(struct block_device *bdev,
                return ERR_PTR(-ENXIO);
 
        whole = bdget_disk(disk, 0);
+       module_put(disk->fops->owner);
        put_disk(disk);
        if (!whole)
                return ERR_PTR(-ENOMEM);