Dan Carpenter cab6ce9ebe 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>
2013-09-04 00:27:27 -04:00
..
2013-08-26 14:09:03 -04:00
2013-07-02 14:23:01 -07:00
2013-08-08 09:28:08 -07:00
2013-07-23 16:01:28 -07:00
2013-07-10 14:46:40 -07:00
2013-07-26 11:36:12 -07:00
2013-07-02 11:44:19 -07:00
2013-08-07 21:57:17 +02:00
2013-06-28 13:01:40 +02:00
2013-08-01 15:49:33 -04:00
2013-07-22 09:34:46 +08:00
2013-07-24 16:36:41 -06:00
2013-08-09 11:52:34 -07:00
2013-07-10 14:50:58 -07:00
2013-08-21 16:38:33 -07:00