diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 7d188ee60..6caed8d92 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -10429,7 +10429,7 @@ static int vdisk_write_proc(char *buffer, char **start, off_t offset, PRINT_ERROR("File path \"%s\" is not " "absolute", filename); res = -EINVAL; - goto out_up; + goto out_free_vdev; } virt_dev->filename = kstrdup(filename, GFP_KERNEL);