]> git.karo-electronics.de Git - karo-tx-linux.git/commit
wimax: i2400m - prevent a possible kernel bug due to missing fw_name string
authorPhil Sutter <phil.sutter@viprinet.com>
Mon, 26 Mar 2012 09:01:30 +0000 (09:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Mar 2012 02:30:09 +0000 (22:30 -0400)
commit4eee6a3a04e8bb53fbe7de0f64d0524d3fbe3f80
treef53517770ad3cda21d4689106e2ec3570c31f2be
parent7dd30d447b7f4a129586cce8e57d0163dde876b0
wimax: i2400m - prevent a possible kernel bug due to missing fw_name string

This happened on a machine with a custom hotplug script calling nameif,
probably due to slow firmware loading. At the time nameif uses ethtool
to gather interface information, i2400m->fw_name is zero and so a null
pointer dereference occurs from within i2400m_get_drvinfo().

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