aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netdevsim
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-15 10:35:02 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-15 17:06:22 -0700
commit5e892880e14fbc1944f49aa42a67496516fe5dac (patch)
tree2ce9e7d22d7eadde22060ef8a03beaa8bffbe049 /drivers/net/netdevsim
parentnet: ionic: Use scnprintf() for avoiding potential buffer overflow (diff)
downloadlinux-dev-5e892880e14fbc1944f49aa42a67496516fe5dac.tar.xz
linux-dev-5e892880e14fbc1944f49aa42a67496516fe5dac.zip
net: sfc: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Cc: "David S . Miller" <davem@davemloft.net> Cc: Edward Cree <ecree@solarflare.com> Cc: Martin Habets <mhabets@solarflare.com> Cc: Solarflare linux maintainers <linux-net-drivers@solarflare.com> Cc: netdev@vger.kernel.org Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netdevsim')
0 files changed, 0 insertions, 0 deletions