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:
5858ae4
)
[CIFS] Replace kmalloc/memset combination with kzalloc
author
vignesh
<
[email protected]
>
Wed, 25 Apr 2007 12:13:48 +0000
(12:13 +0000)
committer
Steve French
<
[email protected]
>
Wed, 25 Apr 2007 12:13:48 +0000
(12:13 +0000)
Signed-off-by: Vignesh Babu <
[email protected]
>
Signed-off-by: Steve French <
[email protected]
>
fs/cifs/readdir.c
patch
|
blob
|
history
diff --git
a/fs/cifs/readdir.c
b/fs/cifs/readdir.c
index 3fab8ed697d1542978fdab2abee8078f4108a69b..b80b0fc1c4c43feb79d8b4798966fd73a207dc5c 100644
(file)
--- a/
fs/cifs/readdir.c
+++ b/
fs/cifs/readdir.c
@@
-432,14
+432,11
@@
static int initiate_cifs_search(const int xid, struct file *file)
if(file->private_data == NULL) {
file->private_data =
- k
m
alloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
+ k
z
alloc(sizeof(struct cifsFileInfo),GFP_KERNEL);
}
- if(file->private_data == NULL)
{
+ if(file->private_data == NULL)
return -ENOMEM;
- } else {
- memset(file->private_data,0,sizeof(struct cifsFileInfo));
- }
cifsFile = file->private_data;
cifsFile->invalidHandle = TRUE;
cifsFile->srch_inf.endOfSearch = FALSE;