]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
staging: bcm2708_vchiq: fix return value check in vchiq_init_state()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 15:05:36 +0000 (15:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2016 07:57:24 +0000 (09:57 +0200)
commitd298ec65803b48a764ae9ccf2ed2238669a4d02b
treed6f950559598298943cdde604a7f47c171032aea
parentb04451d7dfac891daaab2eb88422839660560ba4
staging: bcm2708_vchiq: fix return value check in vchiq_init_state()

In case of error, the function kthread_create() 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 <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c