aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2015-01-19 19:34:51 +0000
committerDavid S. Miller <[email protected]>2015-01-20 00:42:21 +0000
commita8c1d28ac3925b99b5a939617d3fef1644298ee8 (patch)
treef068125515f1490894aa9313d0078895db84d0b1 /net/switchdev/switchdev.c
parentMerge branch 'r8152' (diff)
downloadkernel-a8c1d28ac3925b99b5a939617d3fef1644298ee8.tar.gz
kernel-a8c1d28ac3925b99b5a939617d3fef1644298ee8.zip
s2io: use snprintf() as a safety feature
"sp->desc[i]" has 25 characters. "dev->name" has 15 characters. If we used all 15 characters then the sprintf() would overflow. I changed the "sprintf(sp->name, "%s Neterion %s"" to snprintf(), as well, even though it can't overflow just to be consistent. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions