linux/drivers/infiniband
Xiongfeng Wang 979a459c83 IB/cma: use strlcpy() instead of strncpy()
gcc-8 reports

drivers/infiniband/core/cma_configfs.c: In function 'make_cma_dev':
./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified
bound 64 equals destination size [-Wstringop-truncation]

We need to use strlcpy() to make sure the string is nul-terminated.

Signed-off-by: Xiongfeng Wang <xiongfeng.wang@linaro.org>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-01-15 15:33:21 -07:00
..
core IB/cma: use strlcpy() instead of strncpy() 2018-01-15 15:33:21 -07:00
hw IB/mlx4: Fix incorrectly releasing steerable UD QPs when have only ETH ports 2018-01-15 15:33:21 -07:00
sw RDMA: Mark imm_data as be32 in the verbs uapi header 2018-01-15 15:33:21 -07:00
ulp infiniband: fix ulp/opa_vnic/opa_vnic_vema.c kernel-doc notation 2018-01-10 22:00:34 -07:00
Kconfig IB: INFINIBAND should depend on HAS_DMA 2017-11-30 16:01:28 -07:00
Makefile