scst_vdisk: Fix kfree() argument in vdev_size_store() error path

The wrong variable is freed in the vdev_size_store() error path.
Pass 'new_size' instead of 'buf' to kfree().

Signed-off-by: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
[ bvanassche: edited patch description ]


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2016-03-08 18:24:23 +00:00
parent f21aac581f
commit 8e2996b74a

View File

@@ -8686,7 +8686,7 @@ out:
return res;
out_free:
kfree(buf);
kfree(new_size);
goto out;
}