[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

re: staging: r8712u: Add the new driver to the mainline kernel

2012-11-24 Thread Dan Carpenter
Hello Larry Finger, The patch 2865d42c78a9: "staging: r8712u: Add the new driver to the mainline kernel" from Aug 20, 2010, leads to the following warning: drivers/staging/rtl8712/mlme_linux.c:161 r8712_report_sec_ie() error: buffer overflow 'sec_ie' 255 <= 255 drivers/staging/rtl8712/m

[PATCH 2/2] staging: ft1000: remove assigments of ret and initialise it in beginning

2012-11-24 Thread Devendra Naga
as ret is every time assigned to EINVAL in fail cases, initialise it at the beginning. Signed-off-by: Devendra Naga --- drivers/staging/ft1000/ft1000-usb/ft1000_proc.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c b/dri

[PATCH 1/2] staging: ft1000: replace some spaces with tabs

2012-11-24 Thread Devendra Naga
there are spaces at the starting of the line, replace with tabs Signed-off-by: Devendra Naga --- drivers/staging/ft1000/ft1000-usb/ft1000_proc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_proc.c b/drivers/staging