aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorJean Delvare <[email protected]>2017-10-03 23:16:35 +0000
committerLinus Torvalds <[email protected]>2017-10-04 00:54:26 +0000
commit90ceb2a3ad868f800eb1c9f4ede650daddd94b77 (patch)
treed6e2e4748e25bdcdaeb0972954abacf1cc74f00c /net/switchdev/switchdev.c
parentmm/memory_hotplug: define find_{smallest|biggest}_section_pfn as unsigned long (diff)
downloadkernel-90ceb2a3ad868f800eb1c9f4ede650daddd94b77.tar.gz
kernel-90ceb2a3ad868f800eb1c9f4ede650daddd94b77.zip
kernel/params.c: fix the maximum length in param_get_string
The length parameter of strlcpy() is supposed to reflect the size of the target buffer, not of the source string. Harmless in this case as the buffer is PAGE_SIZE long and the source string is always much shorter than this, but conceptually wrong, so let's fix it. Link: http://lkml.kernel.org/r/20170928162515.24846b4f@endymion Signed-off-by: Jean Delvare <[email protected]> Acked-by: Ingo Molnar <[email protected]> Cc: Baoquan He <[email protected]> Cc: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions