mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-30 12:49:36 +00:00
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>
This commit is contained in:
parent
e118a1df32
commit
3083314238
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue