Re: scsi: mvsas: replace kfree with scsi_host_put

From: Martin K. Petersen
Date: Thu Aug 10 2017 - 20:06:08 EST



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