projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1360246
)
mtd: phram: replace kmalloc/strcpy by kstrdup
author
Fabian Frederick
<fabf@skynet.be>
Wed, 28 May 2014 20:31:28 +0000
(22:31 +0200)
committer
Brian Norris
<computersforpeace@gmail.com>
Sat, 5 Jul 2014 22:40:38 +0000
(15:40 -0700)
Cc: Joern Engel <joern@lazybastard.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/phram.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mtd/devices/phram.c
b/drivers/mtd/devices/phram.c
index 2cceebfb251e7b6959758b8c7a6bc19b4c9a6c1e..3bac7dadf8d6f21fc39bbb07e72a7f9636853b79 100644
(file)
--- a/
drivers/mtd/devices/phram.c
+++ b/
drivers/mtd/devices/phram.c
@@
-181,12
+181,10
@@
static int parse_name(char **pname, const char *token)
if (len > 64)
return -ENOSPC;
- name = k
malloc(l
en, GFP_KERNEL);
+ name = k
strdup(tok
en, GFP_KERNEL);
if (!name)
return -ENOMEM;
- strcpy(name, token);
-
*pname = name;
return 0;
}
This page took
0.026194 seconds
and
5
git commands to generate.