File tree 1 file changed +16
-14
lines changed 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -5898,21 +5898,23 @@ static int __init binder_init(void)
5898
5898
& transaction_log_fops );
5899
5899
}
5900
5900
5901
- /*
5902
- * Copy the module_parameter string, because we don't want to
5903
- * tokenize it in-place.
5904
- */
5905
- device_names = kstrdup (binder_devices_param , GFP_KERNEL );
5906
- if (!device_names ) {
5907
- ret = - ENOMEM ;
5908
- goto err_alloc_device_names_failed ;
5909
- }
5901
+ if (strcmp (binder_devices_param , "" ) != 0 ) {
5902
+ /*
5903
+ * Copy the module_parameter string, because we don't want to
5904
+ * tokenize it in-place.
5905
+ */
5906
+ device_names = kstrdup (binder_devices_param , GFP_KERNEL );
5907
+ if (!device_names ) {
5908
+ ret = - ENOMEM ;
5909
+ goto err_alloc_device_names_failed ;
5910
+ }
5910
5911
5911
- device_tmp = device_names ;
5912
- while ((device_name = strsep (& device_tmp , "," ))) {
5913
- ret = init_binder_device (device_name );
5914
- if (ret )
5915
- goto err_init_binder_device_failed ;
5912
+ device_tmp = device_names ;
5913
+ while ((device_name = strsep (& device_tmp , "," ))) {
5914
+ ret = init_binder_device (device_name );
5915
+ if (ret )
5916
+ goto err_init_binder_device_failed ;
5917
+ }
5916
5918
}
5917
5919
5918
5920
return ret ;
You can’t perform that action at this time.
0 commit comments