staging: r8712u: fix potential NULL pointer dereference in r871x_wps_start()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 8 Oct 2012 00:43:45 +0000 (08:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 20:30:01 +0000 (13:30 -0700)
commit605fba82a2d6f8e19b7530805b792487562429a7
tree49796b40bac70ea2e717e63b1ed4037f331d9526
parenta5e0f69c983a142daa95b70f709a3dabf76cb55f
staging: r8712u: fix potential NULL pointer dereference in r871x_wps_start()

The dereference should be moved below the NULL test.

dpatch engine is used to auto generate this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c