commit | d02a5e6c2fba8b114c44cf05085fca07180f37f1 | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Wed Feb 24 14:42:06 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Feb 26 02:10:13 2010 -0800 |
tree | e91243a2c2256dec2b9f7ad20273c55cdc137358 | |
parent | 66883e90eaa0dd55d395c0f9a0c6da5d50809804 [diff] |
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 <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>