]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wilc1000: fix return value check in wlan_initialize_threads()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Fri, 17 Jun 2016 17:34:17 +0000 (17:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2016 21:41:18 +0000 (14:41 -0700)
commitb3e6916d6edfdf12505efbfb4a019e8a96f2c674
tree4445b9e09fc52df074a2f8f7e44ee5425eb7e7e8
parent4562d224edbe62e5620abbf49ffa8ceae2b73762
staging: wilc1000: fix return value check in wlan_initialize_threads()

In case of error, the function kthread_run() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check
should be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c