From: "Martin K. Petersen" Subject: Re: [PATCH] Fix a memory leak in scsi_host_dev_release() Date: Mon, 30 Nov 2015 20:46:24 -0500 Message-ID: References: <564D0224.9040001@sandisk.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:20779 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754539AbbLABq6 (ORCPT ); Mon, 30 Nov 2015 20:46:58 -0500 In-Reply-To: <564D0224.9040001@sandisk.com> (Bart Van Assche's message of "Wed, 18 Nov 2015 14:56:36 -0800") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Bart Van Assche Cc: James Bottomley , "Martin K. Petersen" , Christoph Hellwig , Hannes Reinecke , "linux-scsi@vger.kernel.org" >>>>> "Bart" == Bart Van Assche writes: Bart> Avoid that kmemleak reports the following memory leak if a SCSI Bart> LLD calls scsi_host_alloc() and scsi_host_put() but neither Bart> scsi_host_add() nor scsi_host_remove(). The following shell Bart> command triggers that scenario: Applied to 4.4/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering