diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 17af8a838..43f8fb160 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -5545,8 +5545,8 @@ static int vdev_size_process_store(struct scst_sysfs_work_item *work) virt_dev = dev->dh_priv; if (!virt_dev->nullio) { - sBUG(); res = -EPERM; + sBUG(); } else if (new_size % (1 << virt_dev->blk_shift) == 0) { virt_dev->file_size = new_size; virt_dev->nblocks = virt_dev->file_size >> dev->block_shift;