From nobody Fri Dec 17 10:37:05 2021 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 3842218FF204; Fri, 17 Dec 2021 10:37:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JFlm16ptHz4W8b; Fri, 17 Dec 2021 10:37:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CA3541A14A; Fri, 17 Dec 2021 10:37:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BHAb5Jl092370; Fri, 17 Dec 2021 10:37:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BHAb5Eh092369; Fri, 17 Dec 2021 10:37:05 GMT (envelope-from git) Date: Fri, 17 Dec 2021 10:37:05 GMT Message-Id: <202112171037.1BHAb5Eh092369@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ram Kishore Vegesna Subject: git: 92d579a9ae19 - stable/13 - ocs_fc: Fix memory leak in ocs_scsi_io_alloc() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: ram X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 92d579a9ae192605fe820ff64a6f889e2014e245 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639737426; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=84qUen1HXCkqZnYEKScVlo/CsCmErfOc41Ndf9Esf/Y=; b=jLa6yWrn3ooQ9Iu37bVhxyHuZj16rX5TkOjoNv9id4RB9RsLLReXfxuJRClwT5CmVZOayR zsAsCvWcID+xeiVazJUSnYWXwREompbyfeW1Lp9NrwrZni3rBFea4JGLvaslmOU2q0oQlW 1adqf4v5bOCCrMsPUNT2DsUs3ZORYyENmfMDosCt/36aR+zhoSmohlTPBblTKFBN7lqHFG QDYJCXJ0mFfHV8UhL6NAOYChSHTH5zfEACBcO/RzuhoTWYdueRPnrYapy1wZL+FJuM8PTQ OUkmgBpX4mw1h9/ye4kaBI3HqokG2HsT9Q5zyY4GTS6SGmyVWplyUjspM1h0eA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639737426; a=rsa-sha256; cv=none; b=LwZPFe+EjswhWr1ZOH004Xg2Jz+7DIPSbiCS6KPwAceqGl08VCoyKLGlmzjNFEj3Epps48 mnFAiqVWn5mKv+XVMcXmA01F/eqhmMxrNEbyTFUsDdIviYREb3z/EiA+MO7V/fay+TPeKd kVdXxp3hiCVr76eSHvbYeOtMS+LUVQWZXM2m1Af99m/g/aK913+PezMLdOCEczzfTUtHG5 slVhdDuDlU4EZUcPqch5f/Wjq2uJA6RPhHBMMLqGZW8FSIEfHNecsk3z5NQSK9lt0rowVn UdEHqilyFH+lqtRdiO3F23fAxoKsVzbmsPmSaJkXliFthaDilf9TC5m4dhJmfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=92d579a9ae192605fe820ff64a6f889e2014e245 commit 92d579a9ae192605fe820ff64a6f889e2014e245 Author: Ram Kishore Vegesna AuthorDate: 2021-04-19 15:40:59 +0000 Commit: Ram Kishore Vegesna CommitDate: 2021-12-17 10:11:49 +0000 ocs_fc: Fix memory leak in ocs_scsi_io_alloc() PR: 254690 Approved by: mav(mentor) MFC after: 2 weeks (cherry picked from commit fc620f9782d1fda5a243fd51a93a0fb46bc80f64) --- sys/dev/ocs_fc/ocs_scsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/ocs_fc/ocs_scsi.c b/sys/dev/ocs_fc/ocs_scsi.c index c2df898bda4b..b1d98c7c0e3d 100644 --- a/sys/dev/ocs_fc/ocs_scsi.c +++ b/sys/dev/ocs_fc/ocs_scsi.c @@ -201,6 +201,7 @@ ocs_scsi_io_alloc(ocs_node_t *node, ocs_scsi_io_role_e role) if (io->hio != NULL) { ocs_log_err(node->ocs, "assertion failed: io->hio is not NULL\n"); + ocs_io_free(ocs, io); ocs_unlock(&node->active_ios_lock); return NULL; }