diff --git a/fs/exec.c b/fs/exec.c index 1ebf6e5a521d9924aa6572bedba504efaf32ee9b..433b1257694ab7eec831f2d762f980ca95183956 100644 --- a/fs/exec.c +++ b/fs/exec.c @@ -929,7 +929,7 @@ int kernel_read_file(struct file *file, void **buf, loff_t *size, bytes = kernel_read(file, *buf + pos, i_size - pos, &pos); if (bytes < 0) { ret = bytes; - goto out; + goto out_free; } if (bytes == 0)