cifsd: fix invalid memory access in smb2_write()
Add missing fp initialzation to prevent invalid memory access in smb2_write(). Reported-by: Coverity Scan <scan-admin@coverity.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
committed by
Steve French
parent
5a0ca77005
commit
bcd62a3683
@@ -6078,7 +6078,7 @@ int smb2_write(struct ksmbd_work *work)
|
|||||||
{
|
{
|
||||||
struct smb2_write_req *req;
|
struct smb2_write_req *req;
|
||||||
struct smb2_write_rsp *rsp, *rsp_org;
|
struct smb2_write_rsp *rsp, *rsp_org;
|
||||||
struct ksmbd_file *fp;
|
struct ksmbd_file *fp = NULL;
|
||||||
loff_t offset;
|
loff_t offset;
|
||||||
size_t length;
|
size_t length;
|
||||||
ssize_t nbytes;
|
ssize_t nbytes;
|
||||||
|
|||||||
Reference in New Issue
Block a user