Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1709132

Re: scsi: mvsas: replace kfree with scsi_host_put

From "Martin K. Petersen" <martin.petersen@oracle.com>
Newsgroups linux.kernel
Subject Re: scsi: mvsas: replace kfree with scsi_host_put
Date 2017-08-11 02:10 +0200
Message-ID <ud5Gx-4IP-7@gated-at.bofh.it> (permalink)
References <ucbuG-8cT-17@gated-at.bofh.it>
Organization Oracle Corporation

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

scsi: mvsas: replace kfree with scsi_host_put Pan Bian <bianpan2016@163.com> - 2017-08-08 14:10 +0200
  Re: scsi: mvsas: replace kfree with scsi_host_put Jinpu Wang <jinpu.wang@profitbricks.com> - 2017-08-08 16:50 +0200
  Re: scsi: mvsas: replace kfree with scsi_host_put "Martin K. Petersen" <martin.petersen@oracle.com> - 2017-08-11 02:10 +0200

csiph-web