diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index fa36ed4e8..ca41cf824 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -705,6 +705,7 @@ static int vdisk_get_file_size(const struct scst_vdisk_dev *virt_dev, goto out; } *file_size = res; + res = 0; out: TRACE_EXIT_RES(res);