diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 66ef444e8..35f633e5f 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -8686,7 +8686,7 @@ out: return res; out_free: - kfree(buf); + kfree(new_size); goto out; }