summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-03-28 09:23:07 +0100
committerRoland Dreier <roland@purestorage.com>2014-04-01 19:53:29 +0200
commit4661bd798f1b58ee2755bfa04003638345802680 (patch)
treea657827350791f971ac0c5a4e4e5a9dfbc5444dc /include/rdma/ib_verbs.h
parentmlx4_core: Fix some indenting in mlx4_ib_add() (diff)
downloadlinux-4661bd798f1b58ee2755bfa04003638345802680.tar.xz
linux-4661bd798f1b58ee2755bfa04003638345802680.zip
mlx4_core: Make buffer larger to avoid overflow warning
My static checker complains that the sprintf() here can overflow. drivers/infiniband/hw/mlx4/main.c:1836 mlx4_ib_alloc_eqs() error: format string overflow. buf_size: 32 length: 69 This seems like a valid complaint. The "dev->pdev->bus->name" string can be 48 characters long. I just made the buffer 80 characters instead of 69 and I changed the sprintf() to snprintf(). Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
0 files changed, 0 insertions, 0 deletions