projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73a999f
)
cifs: replaced kmalloc + memset with kzalloc
author
Dia Vasile
<
[email protected]
>
Sun, 10 Mar 2013 12:29:04 +0000
(14:29 +0200)
committer
Steve French
<
[email protected]
>
Sun, 5 May 2013 03:08:19 +0000
(22:08 -0500)
Signed-off-by: Diana Vasile <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/smb2pdu.c
patch
|
blob
|
history
diff --git
a/fs/cifs/smb2pdu.c
b/fs/cifs/smb2pdu.c
index 41d9d0725f0f3a47d432aa754803a4596c0381ac..83ef66ed4c841baf8b3f856935cb61dee926d128 100644
(file)
--- a/
fs/cifs/smb2pdu.c
+++ b/
fs/cifs/smb2pdu.c
@@
-846,12
+846,10
@@
create_lease_buf(u8 *lease_key, u8 oplock)
{
struct create_lease *buf;
- buf = k
m
alloc(sizeof(struct create_lease), GFP_KERNEL);
+ buf = k
z
alloc(sizeof(struct create_lease), GFP_KERNEL);
if (!buf)
return NULL;
- memset(buf, 0, sizeof(struct create_lease));
-
buf->lcontext.LeaseKeyLow = cpu_to_le64(*((u64 *)lease_key));
buf->lcontext.LeaseKeyHigh = cpu_to_le64(*((u64 *)(lease_key + 8)));
if (oplock == SMB2_OPLOCK_LEVEL_EXCLUSIVE)