|
@@ -575,6 +575,12 @@ static int virtblk_probe(struct virtio_device *vdev)
|
|
|
u16 min_io_size;
|
|
|
u8 physical_block_exp, alignment_offset;
|
|
|
|
|
|
+ if (!vdev->config->get) {
|
|
|
+ dev_err(&vdev->dev, "%s failure: config access disabled\n",
|
|
|
+ __func__);
|
|
|
+ return -EINVAL;
|
|
|
+ }
|
|
|
+
|
|
|
err = ida_simple_get(&vd_index_ida, 0, minor_to_index(1 << MINORBITS),
|
|
|
GFP_KERNEL);
|
|
|
if (err < 0)
|