Commit a0287fc0 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Jim Harris
Browse files

ut/event: add fatal assert for allocation



Change-Id: I77ed68cb07f66511907a44a24fce6263a192cdd9
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/382723


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent dc722275
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -63,6 +63,8 @@ spdk_event_allocate(uint32_t core, spdk_event_fn fn, void *arg1, void *arg2)
{
	struct spdk_event *event = calloc(1, sizeof(*event));

	SPDK_CU_ASSERT_FATAL(event != NULL);

	event->fn = fn;
	event->arg1 = arg1;
	event->arg2 = arg2;