diff mbox

arm: mach-omap2: mux: fix buffer overrun

Message ID 1294245733-4126-1-git-send-email-aaro.koskinen@nokia.com (mailing list archive)
State Accepted
Commit 29fdae7a85facbe8b83d4a1f6c0fd43756f42204
Headers show

Commit Message

Koskinen, Aaro (Nokia - FI/Espoo) Jan. 5, 2011, 4:42 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/mux.c b/arch/arm/mach-omap2/mux.c
index 17bd639..df8d2f2 100644
--- a/arch/arm/mach-omap2/mux.c
+++ b/arch/arm/mach-omap2/mux.c
@@ -893,7 +893,7 @@  static struct omap_mux * __init omap_mux_list_add(
 		return NULL;
 
 	m = &entry->mux;
-	memcpy(m, src, sizeof(struct omap_mux_entry));
+	entry->mux = *src;
 
 #ifdef CONFIG_OMAP_MUX
 	if (omap_mux_copy_names(src, m)) {