+4
−0
Loading
Allocate memory with zero number or size, maybe return a unique pointer rather than NULL. Add a check before common allocation APIs. Change-Id: I83e07cab5145035e705bc32364652be90f238633 Signed-off-by:Mao Jiang <maox.jiang@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/5809 Reviewed-by:
GangCao <gang.cao@intel.com> Reviewed-by:
Changpeng Liu <changpeng.liu@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>