Commit 9b4af913 authored by Qianqiang Liu's avatar Qianqiang Liu Committed by Steve French

smb: client: compress: fix an "illegal accesses" issue

Using uninitialized value "bkt" when calling "kfree"

Fixes: 13b68d44990d ("smb: client: compress: LZ77 code improvements cleanup")
Signed-off-by: default avatarQianqiang Liu <qianqiang.liu@163.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 590efcd3
......@@ -233,7 +233,7 @@ static int collect_sample(const struct iov_iter *iter, ssize_t max, u8 *sample)
static int is_compressible(const struct iov_iter *data)
{
const size_t read_size = SZ_2K, bkt_size = 256, max = SZ_4M;
struct bucket *bkt;
struct bucket *bkt = NULL;
int i = 0, ret = 0;
size_t len;
u8 *sample;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment