sfc: Clear I2C adapter structure in falcon_remove_nic()
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 4 Mar 2009 09:53:02 +0000 (09:53 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2009 01:40:22 +0000 (17:40 -0800)
i2c_del_adapter() leaves dangling pointers in the structure.  If we
retry the NIC probe and pass the structure to i2c_add_adapter() again
it will lead to an oops unless we clear it first.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/falcon.c

Simple merge