linux/drivers/net/caif
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
..
Kconfig caif: CAIF_VIRTIO should depend on HAS_DMA 2013-05-11 16:28:24 -07:00
Makefile Lots of virtio work which wasn't quite ready for last merge window. Plus 2013-05-02 14:14:04 -07:00
caif_hsi.c caif: Update Dmitry's email address. 2013-04-23 13:25:51 -04:00
caif_serial.c caif: add a sanity check to the tty name 2013-09-04 00:27:27 -04:00
caif_spi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-04-30 03:55:20 -04:00
caif_spi_slave.c caif: Remove bouncing address for Daniel Martensson 2013-04-23 13:25:51 -04:00
caif_virtio.c caif_virtio: Remove bouncing email addresses 2013-05-01 11:59:15 +09:30