[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1lgmr2ckj.fsf@oracle.com>
Date: Thu, 10 Aug 2017 20:05:48 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Pan Bian <bianpan2016@....com>
Cc: "James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Johannes Thumshirn <jthumshirn@...e.de>,
Jinpu Wang <jinpu.wang@...fitbricks.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: scsi: mvsas: replace kfree with scsi_host_put
Pan,
> The return value of scsi_host_alloc() should be released by
> scsi_host_put(). However, in function mvs_pci_init(), kfree()
> is used. This patch replaces kfree() with scsi_host_put() to avoid
> possible memory leaks.
Applied to 4.14/scsi-queue.
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists