mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
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:
@@ -8686,7 +8686,7 @@ out:
|
||||
return res;
|
||||
|
||||
out_free:
|
||||
kfree(buf);
|
||||
kfree(new_size);
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user