public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Chen Zhongjin <chenzhongjin@huawei.com>
Cc: <linux-kernel@vger.kernel.org>, <linux-scsi@vger.kernel.org>,
	<target-devel@vger.kernel.org>, <james.smart@broadcom.com>,
	<ram.vegesna@broadcom.com>, <jejb@linux.ibm.com>,
	<martin.petersen@oracle.com>, <christophe.jaillet@wanadoo.fr>,
	<hare@suse.de>, <dwagner@suse.de>
Subject: Re: [PATCH] scsi: efct: Fix possible memleak in efct_device_init()
Date: Fri, 25 Nov 2022 19:19:46 -0500	[thread overview]
Message-ID: <yq1pmdar2hx.fsf@ca-mkp.ca.oracle.com> (raw)
In-Reply-To: <20221111074046.57061-1-chenzhongjin@huawei.com> (Chen Zhongjin's message of "Fri, 11 Nov 2022 15:40:46 +0800")


Chen,

> In efct_device_init(), when efct_scsi_reg_fc_transport() fails,
> efct_scsi_tgt_driver_exit() is not called to release memory for
> efct_scsi_tgt_driver_init() and causes memleak:

Applied to 6.2/scsi-staging, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

  reply	other threads:[~2022-11-26  0:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-11  7:40 [PATCH] scsi: efct: Fix possible memleak in efct_device_init() Chen Zhongjin
2022-11-26  0:19 ` Martin K. Petersen [this message]
2022-12-01  3:45 ` Martin K. Petersen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=yq1pmdar2hx.fsf@ca-mkp.ca.oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=chenzhongjin@huawei.com \
    --cc=christophe.jaillet@wanadoo.fr \
    --cc=dwagner@suse.de \
    --cc=hare@suse.de \
    --cc=james.smart@broadcom.com \
    --cc=jejb@linux.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=ram.vegesna@broadcom.com \
    --cc=target-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox