From: Michael Chan Date: Wed, 24 Feb 2010 14:42:06 +0000 (+0000) Subject: cnic: Fix panic in cnic_iscsi_nl_msg_recv() when device is down. X-Git-Tag: v2.6.34-rc1~233^2~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d02a5e6c2fba8b114c44cf05085fca07180f37f1;p=pandora-kernel.git cnic: Fix panic in cnic_iscsi_nl_msg_recv() when device is down. Some data structures are freed when the device is down and it will crash if an ISCSI netlink message is received. Add RCU protection to prevent this. In the shutdown path, ulp_ops[CNIC_ULP_L4] is assigned NULL and rcu_synchronized before freeing the data structures. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed