[PATCH] staging: gdm72xx: protect access of rx / tx structs

2012-11-24 Thread Ben Chan
This patch applies spinlock to protect access to rx / tx structs in certain call sites, which fixes the following crash in gdm_suspend. It also fixes usb_set_intfdata() in gdm_usb_probe to avoid setting an already freed phy_dev. <5>[ 4996.815018] [<7f0074b0>] (gdm_suspend+0x1c/0x2b4 [gdmwm]) from

[PATCH] staging: gdm72xx: protect access of rx / tx structs

2012-11-24 Thread Ben Chan
This patch applies spinlock to protect access to rx / tx structs in certain call sites, which fixes the following crash in gdm_suspend. It also fixes usb_set_intfdata() in gdm_usb_probe to avoid setting an already freed phy_dev. 5[ 4996.815018] [7f0074b0] (gdm_suspend+0x1c/0x2b4 [gdmwm]) from