diff options
| author | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:05 +0200 | 
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.cz> | 2011-09-15 15:08:18 +0200 | 
| commit | e060c38434b2caa78efe7cedaff4191040b65a15 (patch) | |
| tree | 407361230bf6733f63d8e788e4b5e6566ee04818 /arch/arm/mach-omap2/mux.c | |
| parent | 10e4ac572eeffe5317019bd7330b6058a400dfc2 (diff) | |
| parent | cc39c6a9bbdebfcf1a7dee64d83bf302bc38d941 (diff) | |
| download | olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.tar.xz olio-linux-3.10-e060c38434b2caa78efe7cedaff4191040b65a15.zip  | |
Merge branch 'master' into for-next
Fast-forward merge with Linus to be able to merge patches
based on more recent version of the tree.
Diffstat (limited to 'arch/arm/mach-omap2/mux.c')
| -rw-r--r-- | arch/arm/mach-omap2/mux.c | 14 | 
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c index c7fb22abc21..655e9480eb9 100644 --- a/arch/arm/mach-omap2/mux.c +++ b/arch/arm/mach-omap2/mux.c @@ -821,11 +821,10 @@ static void __init omap_mux_set_cmdline_signals(void)  	if (!omap_mux_options)  		return; -	options = kmalloc(strlen(omap_mux_options) + 1, GFP_KERNEL); +	options = kstrdup(omap_mux_options, GFP_KERNEL);  	if (!options)  		return; -	strcpy(options, omap_mux_options);  	next_opt = options;  	while ((token = strsep(&next_opt, ",")) != NULL) { @@ -855,24 +854,19 @@ static int __init omap_mux_copy_names(struct omap_mux *src,  	for (i = 0; i < OMAP_MUX_NR_MODES; i++) {  		if (src->muxnames[i]) { -			dst->muxnames[i] = -				kmalloc(strlen(src->muxnames[i]) + 1, -					GFP_KERNEL); +			dst->muxnames[i] = kstrdup(src->muxnames[i], +						   GFP_KERNEL);  			if (!dst->muxnames[i])  				goto free; -			strcpy(dst->muxnames[i], src->muxnames[i]);  		}  	}  #ifdef CONFIG_DEBUG_FS  	for (i = 0; i < OMAP_MUX_NR_SIDES; i++) {  		if (src->balls[i]) { -			dst->balls[i] = -				kmalloc(strlen(src->balls[i]) + 1, -					GFP_KERNEL); +			dst->balls[i] = kstrdup(src->balls[i], GFP_KERNEL);  			if (!dst->balls[i])  				goto free; -			strcpy(dst->balls[i], src->balls[i]);  		}  	}  #endif  |