diff --git a/lib/nvmf/transport.c b/lib/nvmf/transport.c index a5d6a5807..263130194 100644 --- a/lib/nvmf/transport.c +++ b/lib/nvmf/transport.c @@ -1,8 +1,8 @@ /*- * BSD LICENSE * - * Copyright (c) Intel Corporation. - * All rights reserved. + * Copyright (c) Intel Corporation. All rights reserved. + * Copyright (c) 2018 Mellanox Technologies LTD. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -165,6 +165,9 @@ spdk_nvmf_transport_poll_group_create(struct spdk_nvmf_transport *transport) struct spdk_nvmf_transport_poll_group *group; group = transport->ops->poll_group_create(transport); + if (!group) { + return NULL; + } group->transport = transport; return group;