usbnet: sanitise overlong driver information strings
authorPhil Sutter <phil.sutter@viprinet.com>
Thu, 14 Jun 2012 01:18:42 +0000 (01:18 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jun 2012 23:20:31 +0000 (16:20 -0700)
commit86a2f415e6cdc5dbb2163b31abf4d36f26f7e3da
treedeb47e0b1e7a5596e0faae054584188dd14303a9
parent0b3f0e7ae0765c81c7d659811595ea5058ae05a7
usbnet: sanitise overlong driver information strings

As seen on smsc75xx, driver_info->description being longer than 32
characters messes up 'ethtool -i' output.

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c