Commit 2a38d2a8 authored by Yang Yingliang's avatar Yang Yingliang Committed by Martin K. Petersen
Browse files

scsi: qedf: Use vzalloc() instead of vmalloc()/memset(0)

parent b592d662
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -106,11 +106,10 @@ qedf_dbg_info(struct qedf_dbg_ctx *qedf, const char *func, u32 line,
int
qedf_alloc_grc_dump_buf(u8 **buf, uint32_t len)
{
		*buf = vmalloc(len);
		*buf = vzalloc(len);
		if (!(*buf))
			return -ENOMEM;

		memset(*buf, 0, len);
		return 0;
}