aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio/bpqether.c
diff options
context:
space:
mode:
authortannerlove <tannerlove@google.com>2020-06-08 15:37:15 -0400
committerDavid S. Miller <davem@davemloft.net>2020-06-08 19:14:28 -0700
commit8027bc0307ce59759b90679fa5d8b22949586d20 (patch)
treeda2e4e5a555eedbca6564fbcd18f7ef0fd7d8956 /drivers/net/hamradio/bpqether.c
parentMerge tag 'rxrpc-fixes-20200605' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs (diff)
downloadlinux-dev-8027bc0307ce59759b90679fa5d8b22949586d20.tar.xz
linux-dev-8027bc0307ce59759b90679fa5d8b22949586d20.zip
selftests/net: in timestamping, strncpy needs to preserve null byte
If user passed an interface option longer than 15 characters, then device.ifr_name and hwtstamp.ifr_name became non-null-terminated strings. The compiler warned about this: timestamping.c:353:2: warning: ‘strncpy’ specified bound 16 equals \ destination size [-Wstringop-truncation] 353 | strncpy(device.ifr_name, interface, sizeof(device.ifr_name)); Fixes: cb9eff097831 ("net: new user space API for time stamping of incoming and outgoing packets") Signed-off-by: Tanner Love <tannerlove@google.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions