Skip to content

Commit 9b4af91

Browse files
Qianqiang Liusmfrench
authored andcommitted
smb: client: compress: fix an "illegal accesses" issue
Using uninitialized value "bkt" when calling "kfree" Fixes: 13b68d4 ("smb: client: compress: LZ77 code improvements cleanup") Signed-off-by: Qianqiang Liu <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 590efcd commit 9b4af91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/smb/client/compress.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static int collect_sample(const struct iov_iter *iter, ssize_t max, u8 *sample)
233233
static int is_compressible(const struct iov_iter *data)
234234
{
235235
const size_t read_size = SZ_2K, bkt_size = 256, max = SZ_4M;
236-
struct bucket *bkt;
236+
struct bucket *bkt = NULL;
237237
int i = 0, ret = 0;
238238
size_t len;
239239
u8 *sample;

0 commit comments

Comments
 (0)