From 147ced0a5551db4ae27bc8b7a05d9db9fa2efec0 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 4 Jan 2021 21:22:57 +0000 Subject: [PATCH] scst_vdisk: Make vdisk_get_file_size() return 0 upon success Reported-by: Grant Albitz git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9325 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_vdisk.c | 1 + 1 file changed, 1 insertion(+) 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);