Commit 93c1e57
mm: huge_memory: use strscpy() instead of strcpy()
Replace strcpy() with strscpy() in mm/huge_memory.c
strcpy() has been deprecated because it is generally unsafe, so help to
eliminate it from the kernel source.
Link: KSPP/linux#88
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Maíra Canal <[email protected]>
Reviewed-by: Lance Yang <[email protected]>
Cc: Baolin Wang <[email protected]>
Cc: Barry Song <[email protected]>
Cc: David Hildenbrand <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Ryan Roberts <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>1 parent 24f9cd1 commit 93c1e57
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
972 | | - | |
| 972 | + | |
973 | 973 | | |
974 | 974 | | |
975 | 975 | | |
| |||
4167 | 4167 | | |
4168 | 4168 | | |
4169 | 4169 | | |
4170 | | - | |
| 4170 | + | |
4171 | 4171 | | |
4172 | 4172 | | |
4173 | 4173 | | |
| |||
0 commit comments