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

!8056 scsi: qla2xxx: Fix a memory leak in an error path of qla2x00_process_els()

parents a3c2e4ef e8ee7b62
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -409,7 +409,7 @@ qla2x00_process_els(struct bsg_job *bsg_job)
	goto done_free_fcport;

done_free_fcport:
	if (bsg_request->msgcode == FC_BSG_RPT_ELS)
	if (bsg_request->msgcode != FC_BSG_RPT_ELS)
		kfree(fcport);
done:
	return rval;