Unverified Commit b03a0aaa authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14395 scsi: qedf: Fix a possible memory leak in qedf_alloc_and_init_sb()

parents 3a1a2f44 15091875
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2737,6 +2737,7 @@ static int qedf_alloc_and_init_sb(struct qedf_ctx *qedf,
	    sb_id, QED_SB_TYPE_STORAGE);

	if (ret) {
		dma_free_coherent(&qedf->pdev->dev, sizeof(*sb_virt), sb_virt, sb_phys);
		QEDF_ERR(&qedf->dbg_ctx,
			 "Status block initialization failed (0x%x) for id = %d.\n",
			 ret, sb_id);