From nobody Fri Dec 17 10:03:45 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 B2A5F18F76F9; Fri, 17 Dec 2021 10:03:45 +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 4JFl1Y3Pm9z3t1b; Fri, 17 Dec 2021 10:03:45 +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 54C5219DB9; Fri, 17 Dec 2021 10:03:45 +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 1BHA3jCw051860; Fri, 17 Dec 2021 10:03:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BHA3jdt051859; Fri, 17 Dec 2021 10:03:45 GMT (envelope-from git) Date: Fri, 17 Dec 2021 10:03:45 GMT Message-Id: <202112171003.1BHA3jdt051859@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: 12e6cbd15853 - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: 12e6cbd158530259d951e3e246a52ddc57fa644b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639735425; 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=qTcJ/YvJbB2+zlWLmIm4QovCleNl9IC5wfhzVaIfPmo=; b=YJyYqB86RxDNgdNwE2h/G2yfSuoHqQDKI8kK6AzWg13SJj3FAY5cY976Pgisw7xmmWwy+g aihQdUburo5/F+1k11k4c3kfxktJ6lSm3/p6dQ9TZEeYP7txCHObeqyMmjmkb2wSLcgJEo 7xX0h+0yYGGY9Hc/vfbj9yPQIXDda2Zu3Oh2FFB2nO8GFcnVvP0tOArSKf301ER82RMUv1 Pbe7RFNBQ0bJjaijCu5iZEdBnjGtuLoQZF9/vq1O8sUg6REAa3/FQk6qkBDU0uV9QHirrg BkvLX49YrpM4QncZIt58mjYEZyw8Go1vOg3t4o6wdlwDnIiSwJrjTe0cwjhnlQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639735425; a=rsa-sha256; cv=none; b=YMoAseHChzxgXcTbw9h3dBBIpgP8Y0tD0qEjy8F0pHWs5nThNRcixO8oLYmfeDDUF1hICr WxmNC2hr+ufydYBWnjxlaUxECFqrg+ZBq0medGI7Y6hIHdVdOcQvPA9UwVXPEWYK4Lri5u igmJUcJHvFOpY2CXsWMTEpIRrlQjsrvQ8N9V6IDAZn6AzpHdWyvx5JxrZuavi9RWnTdc+n NnABGHQ4CRmtUclKs8O69ylEfEQK/8lB934OLFNM+PQ9eW15a2PJ+qoh6qDStLiM3iK5Sz PkmfMf3RO2lwMlMesSmZemPVVapuzkIObeZJP1qUld7/QKGEXXO6mIL9JYM+eg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by ram: URL: https://cgit.FreeBSD.org/src/commit/?id=12e6cbd158530259d951e3e246a52ddc57fa644b commit 12e6cbd158530259d951e3e246a52ddc57fa644b Author: Ram Kishore Vegesna AuthorDate: 2021-04-19 15:40:59 +0000 Commit: Ram Kishore Vegesna CommitDate: 2021-12-17 09:45:59 +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 dd1f15cb3877..b11d2678267c 100644 --- a/sys/dev/ocs_fc/ocs_scsi.c +++ b/sys/dev/ocs_fc/ocs_scsi.c @@ -203,6 +203,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; }