thread: wrong_thread SEGV when NULL thread passed
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com> Change-Id: I7c121531eda9473b78c46332d6fdb1c8f71c88b7 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11266 Reviewed-by: John Levon <levon@movementarian.org> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
9b72cda8b2
commit
79ba049a6f
@ -1586,6 +1586,10 @@ static void
|
||||
wrong_thread(const char *func, const char *name, struct spdk_thread *thread,
|
||||
struct spdk_thread *curthread)
|
||||
{
|
||||
if (thread == NULL) {
|
||||
SPDK_ERRLOG("%s(%s) called with NULL thread\n", func, name);
|
||||
abort();
|
||||
}
|
||||
SPDK_ERRLOG("%s(%s) called from wrong thread %s:%" PRIu64 " (should be "
|
||||
"%s:%" PRIu64 ")\n", func, name, curthread->name, curthread->id,
|
||||
thread->name, thread->id);
|
||||
|
Loading…
Reference in New Issue
Block a user