diff options
author | Denis Bolotin <denis.bolotin@cavium.com> | 2018-04-24 15:32:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-24 13:59:42 -0400 |
commit | c7d852e301d834949e570920db808201bdc51a22 (patch) | |
tree | 0b310d0fbb60f8bee14ff5c307ec6bc5f7e71f80 /drivers/net/ethernet/freescale | |
parent | Merge branch 'ipconfig-NTP-server-support-bug-fixes-documentation-improvements' (diff) | |
download | linux-dev-c7d852e301d834949e570920db808201bdc51a22.tar.xz linux-dev-c7d852e301d834949e570920db808201bdc51a22.zip |
qed: Fix copying 2 strings
The strscpy() was a recent fix (net: qed: use correct strncpy() size) to
prevent passing the length of the source buffer to strncpy() and guarantee
null termination.
It misses the goal of overwriting only the first 3 characters in
"???_BIG_RAM" and "???_RAM" while keeping the rest of the string.
Use strncpy() with the length of 3, without null termination.
Signed-off-by: Denis Bolotin <denis.bolotin@cavium.com>
Signed-off-by: Ariel Elior <ariel.elior@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
0 files changed, 0 insertions, 0 deletions