Commit 590efcd3 authored by Qianqiang Liu's avatar Qianqiang Liu Committed by Steve French

smb: client: compress: fix a potential issue of freeing an invalid pointer

The dst pointer may not be initialized when calling kvfree(dst)

Fixes: 13b68d44990d9 ("smb: client: compress: LZ77 code improvements cleanup")
Signed-off-by: default avatarQianqiang Liu <qianqiang.liu@163.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 94ae8c3f
......@@ -318,7 +318,7 @@ int smb_compress(struct TCP_Server_Info *server, struct smb_rqst *rq, compress_s
{
struct iov_iter iter;
u32 slen, dlen;
void *src, *dst;
void *src, *dst = NULL;
int ret;
if (!server || !rq || !rq->rq_iov || !rq->rq_iov->iov_base)
......
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