summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-06-19 16:47:38 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-21 22:14:11 +0300
commitfaebad853455b7126450c1690f7c31e048213543 (patch)
treebddfb74b25c6ba2832bac9c2e3f239ed7935155c /net/unix/af_unix.c
parent291c53e4dacd3a2cc3152d8af37f07f8496c594a (diff)
downloadlinux-faebad853455b7126450c1690f7c31e048213543.tar.xz
net: hns3: fix different snprintf() limit
This patch doesn't affect runtime at all, it's just a correctness issue. The ptp->info.name[] buffer has 16 characters but the snprintf() limit was capped at 32 characters. Fortunately, HCLGE_DRIVER_NAME is "hclge" which isn't close to 16 characters so we're fine. Fixes: 0bf5eb788512 ("net: hns3: add support for PTP") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions