projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[linux-block.git]
/
fs
/
9p
/
fid.c
diff --git
a/fs/9p/fid.c
b/fs/9p/fid.c
index ed4f8519b6270656b1e1c899cdf31dd4d451ded8..a9ef46f02354f465ca013ff048b4591b928bade6 100644
(file)
--- a/
fs/9p/fid.c
+++ b/
fs/9p/fid.c
@@
-100,7
+100,7
@@
static int build_path_from_dentry(struct v9fs_session_info *v9ses,
for (ds = dentry; !IS_ROOT(ds); ds = ds->d_parent)
n++;
- wnames = kmalloc
(sizeof(char *) * n
, GFP_KERNEL);
+ wnames = kmalloc
_array(n, sizeof(char *)
, GFP_KERNEL);
if (!wnames)
goto err_out;