projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do_sys_name_to_handle(): use kzalloc() to fix kernel-infoleak
[linux-2.6-microblaze.git]
/
fs
/
fhandle.c
diff --git
a/fs/fhandle.c
b/fs/fhandle.c
index
18b3ba8
..
57a1261
100644
(file)
--- a/
fs/fhandle.c
+++ b/
fs/fhandle.c
@@
-36,7
+36,7
@@
static long do_sys_name_to_handle(const struct path *path,
if (f_handle.handle_bytes > MAX_HANDLE_SZ)
return -EINVAL;
- handle = k
m
alloc(sizeof(struct file_handle) + f_handle.handle_bytes,
+ handle = k
z
alloc(sizeof(struct file_handle) + f_handle.handle_bytes,
GFP_KERNEL);
if (!handle)
return -ENOMEM;