+6
−5
Loading
When call spdk_thread_get_by_id function to use thread->id to get thread point, if the id value is invaild, just return NULL before search from g_threads tailq. Signed-off-by:sunshihao <sunshihao@huawei.com> Change-Id: Ic6c35d2c2b5093c9b513618742b8b9835599ba63 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5031 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>