commit | 00aeaa068ade661c9df9606d7be7d99df0268672 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Sat Feb 20 10:44:04 2021 +0100 |
committer | Tom Rini <trini@konsulko.com> | Wed Feb 24 16:51:49 2021 -0500 |
tree | f3dc7500422579ef8a93d0ed9bb7a5ca3e494dff | |
parent | 83b42fac85e0d44c89e89fd42fc6c26dbf7fcafa [diff] |
net: cortina_ni: buffer overrun When copying to a u32 field we should use sizeof(u32) and not sizeof(*u32) in memcpy. On 64bit systems like cortina_presidio-asic-emmc_defconfig using sizeof(*u32) leads to a buffer overrun. Fixes: febe13b438b3 ("net: cortina_ni: Add eth support for Cortina Access CAxxxx SoCs") Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-By: Ramon Fried <rfried.dev@gmail.com>