NTB: Fix incorrect return check in ntb_perf
authorDave Jiang <dave.jiang@intel.com>
Fri, 18 Mar 2016 23:39:41 +0000 (16:39 -0700)
committerJon Mason <jdmason@kudzu.us>
Mon, 21 Mar 2016 23:28:25 +0000 (19:28 -0400)
commitddc8f6feec76b5deea8090db015920a283006044
tree09ab6f3e481b9e84f9bebc4693d7c74250835c31
parent2572c7fb4e4b941af9a0206ac8093d362ae6d371
NTB: Fix incorrect return check in ntb_perf

kthread_create_no_node() returns error pointers, never NULL. Fix check so
it handles error correctly.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/test/ntb_perf.c