From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751089AbdALD5v (ORCPT ); Wed, 11 Jan 2017 22:57:51 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:50852 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750807AbdALD5r (ORCPT ); Wed, 11 Jan 2017 22:57:47 -0500 To: Johannes Thumshirn Cc: "Martin K . Petersen" , Linux SCSI Mailinglist , Linux Kernel Mailinglist , Dick Kennedy , Roberto Sassu Subject: Re: [PATCH] lpfc: avoid double free of resource identifiers From: "Martin K. Petersen" Organization: Oracle Corporation References: <20170111100642.18573-1-jthumshirn@suse.de> Date: Wed, 11 Jan 2017 22:57:39 -0500 In-Reply-To: <20170111100642.18573-1-jthumshirn@suse.de> (Johannes Thumshirn's message of "Wed, 11 Jan 2017 11:06:42 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>>>> "Johannes" == Johannes Thumshirn writes: Johannes> Set variables initialized in Johannes> lpfc_sli4_alloc_resource_identifiers() to NULL if an error Johannes> occurred. Otherwise, lpfc_sli4_driver_resource_unset() Johannes> attempts to free the memory again. Applied to 4.10/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering