diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-03-04 10:53:02 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-05 02:40:22 +0100 |
commit | 8c870379d2db81a11ede65e9fd9774e4e6efe84a (patch) | |
tree | 108e0a64e644c6d33ef7f2b4ea06488d8a2c57c6 /drivers/net/sfc/tx.c | |
parent | sfc: Clean up properly on reset failure paths (diff) | |
download | linux-8c870379d2db81a11ede65e9fd9774e4e6efe84a.tar.xz linux-8c870379d2db81a11ede65e9fd9774e4e6efe84a.zip |
sfc: Clear I2C adapter structure in falcon_remove_nic()
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>
Diffstat (limited to 'drivers/net/sfc/tx.c')
0 files changed, 0 insertions, 0 deletions