arm: mach-omap2: mux: fix buffer overrun
Subsystems (3)
PATCH 1/1 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 Aaro Koskinen <[email protected]>
--- arch/arm/mach-omap2/mux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/mux.c +1 -1
@@ -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)) {
Signature · 1 line
1.5.6.5
Tony Lindgren
maintainerPATCH 1/1 arm: mach-omap2: mux: fix buffer overrun
Quoted 2 lines · Aaro Koskinen
memcpy()copies 8 bytes too much (omap_mux_entryvs.omap_mux). Correct by replacingmemcpy()with struct assignment, which is safer.
Thanks will queue as a fix after the merge window.
Tony
Quoted 25 lines
Signed-off-by Aaro Koskinen <[email protected]>--- arch/arm/mach-omap2/mux.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)arch/arm/mach-omap2/mux.c +1
-1@@ -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)) {Signature · 6 lines
1.5.6.5 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo at vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html