mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-27 22:24:11 +08:00
smb: client: compress: fix a potential issue of freeing an invalid pointer
The dst pointer may not be initialized when calling kvfree(dst)
Fixes: 13b68d4499
("smb: client: compress: LZ77 code improvements cleanup")
Signed-off-by: Qianqiang Liu <qianqiang.liu@163.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
94ae8c3fee
commit
590efcd3c7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user