git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
fs
/
afs
/
volume.c
diff --git
a/fs/afs/volume.c
b/fs/afs/volume.c
index
0ff4b86
..
768c6db
100644
(file)
--- a/
fs/afs/volume.c
+++ b/
fs/afs/volume.c
@@
-186,11
+186,10
@@
int afs_volume_lookup(const char *name, struct afs_cell *cell, int rwpath,
_debug("creating new volume record");
ret = -ENOMEM;
_debug("creating new volume record");
ret = -ENOMEM;
- volume = k
m
alloc(sizeof(struct afs_volume), GFP_KERNEL);
+ volume = k
z
alloc(sizeof(struct afs_volume), GFP_KERNEL);
if (!volume)
goto error_up;
if (!volume)
goto error_up;
- memset(volume, 0, sizeof(struct afs_volume));
atomic_set(&volume->usage, 1);
volume->type = type;
volume->type_force = force;
atomic_set(&volume->usage, 1);
volume->type = type;
volume->type_force = force;