From: Ben Hutchings Date: Wed, 4 Mar 2009 09:53:02 +0000 (+0000) Subject: sfc: Clear I2C adapter structure in falcon_remove_nic() X-Git-Tag: v2.6.30-rc1~662^2~365 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c870379d2db81a11ede65e9fd9774e4e6efe84a;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed