]> git.karo-electronics.de Git - linux-beck.git/commit
arm: mach-omap2: mux: fix buffer overrun
authorAaro Koskinen <Aaro.Koskinen@nokia.com>
Fri, 7 Jan 2011 03:49:28 +0000 (19:49 -0800)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Jan 2011 03:58:28 +0000 (19:58 -0800)
commit3083314238afb593b598dca4bab4bb6ae09a6c82
tree29c5f5155a312e3c6943b0bb1fe4f87358bc2e45
parente118a1df32c41186f717bbe6b42142741530e8b9
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 <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mux.c