Denis Bolotin c7d852e301 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>
2018-04-24 13:59:42 -04:00
..
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2017-05-30 12:07:01 -04:00
2018-04-24 13:59:42 -04:00
2017-05-18 13:21:40 -04:00
2017-05-21 12:56:53 -04:00
2018-03-29 14:29:55 -04:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-03-29 14:18:02 -04:00
2018-01-02 13:59:16 -05:00
2017-01-01 21:02:14 -05:00
2018-03-27 09:51:22 +02:00
2018-01-02 13:59:16 -05:00
2017-05-21 12:56:53 -04:00
2018-03-29 14:18:02 -04:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-03-29 14:18:02 -04:00
2017-10-19 12:46:43 +01:00
2017-10-19 12:46:43 +01:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-01-02 13:59:16 -05:00
2018-03-29 14:29:55 -04:00