Commit ea11d684 authored by Changpeng Liu's avatar Changpeng Liu Committed by Jim Harris
Browse files

bdev/aio: make calloc with the right usage

parent 11774a35
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -422,7 +422,7 @@ create_aio_disk(const char *name, const char *filename, uint32_t block_size)
	uint64_t disk_size;
	int rc;

	fdisk = calloc(sizeof(*fdisk), 1);
	fdisk = calloc(1, sizeof(*fdisk));
	if (!fdisk) {
		SPDK_ERRLOG("Unable to allocate enough memory for aio backend\n");
		return NULL;