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:
44d8047
)
android: binder: use kstrdup instead of open-coding it
author
Rasmus Villemoes
<
[email protected]
>
Fri, 7 Sep 2018 08:01:46 +0000
(10:01 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 14 Sep 2018 13:22:36 +0000
(15:22 +0200)
Signed-off-by: Rasmus Villemoes <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/android/binder.c
patch
|
blob
|
history
diff --git
a/drivers/android/binder.c
b/drivers/android/binder.c
index 5410df2550dd73e934afd470dee8b85613b95e91..46dad7d724acb3fd9445a2d87801096d2985fc9e 100644
(file)
--- a/
drivers/android/binder.c
+++ b/
drivers/android/binder.c
@@
-5764,12
+5764,11
@@
static int __init binder_init(void)
* Copy the module_parameter string, because we don't want to
* tokenize it in-place.
*/
- device_names = k
zalloc(strlen(binder_devices_param) + 1
, GFP_KERNEL);
+ device_names = k
strdup(binder_devices_param
, GFP_KERNEL);
if (!device_names) {
ret = -ENOMEM;
goto err_alloc_device_names_failed;
}
- strcpy(device_names, binder_devices_param);
device_tmp = device_names;
while ((device_name = strsep(&device_tmp, ","))) {