diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-09-03 11:02:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-09-04 06:27:27 +0200 |
commit | cab6ce9ebe89303bbf5eff442776188070a22771 (patch) | |
tree | 09a1fd1803efce93d399bd741d5f63a2f809890b /samples | |
parent | ibmveth: Fix little endian issues (diff) | |
download | linux-cab6ce9ebe89303bbf5eff442776188070a22771.tar.xz linux-cab6ce9ebe89303bbf5eff442776188070a22771.zip |
caif: add a sanity check to the tty name
"tty->name" and "name" are a 64 character buffers. My static checker
complains because we add the "cf" on the front so it look like we are
copying a 66 character string into a 64 character buffer.
Also if the name is larger than IFNAMSIZ (16) it triggers a BUG_ON()
inside the call to alloc_netdev().
This is all under CAP_SYS_ADMIN so it's not a security fix, it just adds
a little robustness.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions