mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-16 18:21:27 +00:00
scst_vdisk: Make vdisk_get_file_size() return 0 upon success
Reported-by: Grant Albitz <GAlbitz@comstar-usa.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user