From: Dan Carpenter Date: Fri, 28 Mar 2014 08:23:07 +0000 (+0300) Subject: mlx4_core: Make buffer larger to avoid overflow warning X-Git-Tag: v3.15-rc1~103^2^5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4661bd798f1b58ee2755bfa04003638345802680;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed