Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 30833142 authored by Aaro Koskinen's avatar Aaro Koskinen Committed by Tony Lindgren
Browse files

arm: mach-omap2: mux: fix buffer overrun



memcpy() copies 8 bytes too much (omap_mux_entry vs. omap_mux). Correct
by replacing memcpy() with struct assignment, which is safer.

Signed-off-by: default avatarAaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent e118a1df
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -893,7 +893,7 @@ static struct omap_mux * __init omap_mux_list_add(
		return NULL;
		return NULL;


	m = &entry->mux;
	m = &entry->mux;
	memcpy(m, src, sizeof(struct omap_mux_entry));
	entry->mux = *src;


#ifdef CONFIG_OMAP_MUX
#ifdef CONFIG_OMAP_MUX
	if (omap_mux_copy_names(src, m)) {
	if (omap_mux_copy_names(src, m)) {