projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0ca77
)
cifsd: fix invalid memory access in smb2_write()
author
Namjae Jeon
<namjae.jeon@samsung.com>
Mon, 10 May 2021 00:08:19 +0000
(09:08 +0900)
committer
Steve French
<stfrench@microsoft.com>
Tue, 11 May 2021 00:15:49 +0000
(19:15 -0500)
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>
fs/cifsd/smb2pdu.c
patch
|
blob
|
history
diff --git
a/fs/cifsd/smb2pdu.c
b/fs/cifsd/smb2pdu.c
index
d07d7c4
..
18de8a7
100644
(file)
--- a/
fs/cifsd/smb2pdu.c
+++ b/
fs/cifsd/smb2pdu.c
@@
-6078,7
+6078,7
@@
int smb2_write(struct ksmbd_work *work)
{
struct smb2_write_req *req;
struct smb2_write_rsp *rsp, *rsp_org;
- struct ksmbd_file *fp;
+ struct ksmbd_file *fp
= NULL
;
loff_t offset;
size_t length;
ssize_t nbytes;