aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-03-11 09:37:40 +0100
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2020-05-28 19:51:51 -0700
commitc28481a88cb38a3e1b7b533f53eb82e5e34f7597 (patch)
tree7bb4859b0b8fdd4f865359cdb60f5cf7027c4e99 /drivers/net/ethernet/intel/igc
parentMerge branch 'hns3-next' (diff)
downloadlinux-dev-c28481a88cb38a3e1b7b533f53eb82e5e34f7597.tar.xz
linux-dev-c28481a88cb38a3e1b7b533f53eb82e5e34f7597.zip
i40e: 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(). Signed-off-by: Takashi Iwai <tiwai@suse.de> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions