Loading
hello_sock: check if ctx->group is NULL
Fixed issue detected by Klocwork scan. ctx->group must be checked for NULL before call to spdk_sock_group_provide_buf(ctx->group, ...), otherwise in this function we are dereferencing NULL pointer in line: STAILQ_INSERT_HEAD(&group->pool, provided, link); Change-Id: I10d1d35d1026f12f7fa02b24639f6036e0a798f2 Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18244 Reviewed-by:
Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>