Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5299073ybl; Tue, 14 Jan 2020 06:46:03 -0800 (PST) X-Google-Smtp-Source: APXvYqyfAbAfuaCEFZebb4rEZ+XFw4KQzAJYEaZB8W3izMdvx97XZWc/vai20l2ByjtDi10rGBDS X-Received: by 2002:aca:e106:: with SMTP id y6mr17450994oig.131.1579013163156; Tue, 14 Jan 2020 06:46:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579013163; cv=none; d=google.com; s=arc-20160816; b=iBqwXXnpTf53DwlNdwhnjZCbPDR/OtjrmTWqVBJ2SYYhCkN7jifskSXgHlmjaSlbI6 mMIdNqjPz43WDVYZPpeQIRjpaCLRX2lnMuQeOrEf8wKJNL3xKsLBLlaWyX8UR56vNBER UgFrLBgq3zpPqrqIiPsHIGfsB1Rs0vY5+8y6498m8UD2WWtWmaoPHkC82SepDdePJFZB FQe3Ov205YCPP8zsiP7tQiIDn22WbhGLQRuNjJxJ/N0E7KndbKVTsxy1y/VGvcXhz+6N 4o4LqOvHaarw2B1SHcMuGj13RKpokofrw0bsn5ExoweJsA18c0b20WB5p9MzqSrWctbT SRyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=AfAB3/7km9Vwq9UJ+uPA3J45269Y+p9bx2wkMxynuMw=; b=fqlDmX+DHi9+gtFNPYMSHd0gvQmKd+TZeITR7hRspdlrNm0UlVdn3HEhEf6VJ6P/ul 6c3G4cujRvtheJslL12X6ECk/ul48D2Lz2ImClK18MPqNyg5UsVNz44CW/RxgHlAuQSi bHlco2v83WXXCEAsO+UuuYXq2VyGWhe7Se4PYjY+t19XkjvRP17Y1ppzKhiInLOuJcoG JFPGoOn/blZ+5VGFKbZg2hrvQBMZYWYAr3lKraFx8KE/UQ2diKIZgW9umQYwCFZQjlYv UOHM2SoLukBWigq0UKcIvIL1jnkwZNFjzyP8UQWj9ME5GJWrbn88kgYoa0qsz0wg/9re ueuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=e2dt+FBO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t142si7693453oih.242.2020.01.14.06.45.51; Tue, 14 Jan 2020 06:46:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=e2dt+FBO; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729008AbgANOnZ (ORCPT + 99 others); Tue, 14 Jan 2020 09:43:25 -0500 Received: from esa4.hc3370-68.iphmx.com ([216.71.155.144]:38835 "EHLO esa4.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgANOnZ (ORCPT ); Tue, 14 Jan 2020 09:43:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1579013004; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=PX5tKIG5LXYHZbMQPwsn5YEgEtw9pEZTLwOmysNDEoE=; b=e2dt+FBOyJyZyW2EsVlJX9pZ99Cuj8N14jNhhnqsWEPuHqPeMbqv3t1m a8ukOZljzbffz56/dXjDAyhRAfcign9ODYT4WdSLLOI1qy3i1yusjvD9C oJ5bkeLP/n5T8YfamXW3DjDoCsZTILC5JWxw1UhevOkeFj6WVjAQAkYNf c=; Authentication-Results: esa4.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=igor.druzhinin@citrix.com; spf=Pass smtp.mailfrom=igor.druzhinin@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa4.hc3370-68.iphmx.com: no sender authenticity information available from domain of igor.druzhinin@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="igor.druzhinin@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa4.hc3370-68.iphmx.com: domain of igor.druzhinin@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="igor.druzhinin@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa4.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa4.hc3370-68.iphmx.com; envelope-from="igor.druzhinin@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: 49J5zOfg9xKLaJyx/dhs14KVSqFaKzjQwyeiUpCMFrCu4tEUyLgS9TZN3HqZy3U+k5nOHW5JDr pjXmzQ/wg2GyRcWc6qXEr6WapcX1zZfh9gFaeWDA5rzsAhYg9S5wmuGnXtlQ9ZJQ5wifBVFqmw uwseuO3h2SpVsY2uIDiApfk9YJuzjKWnqO01lMWoOYSYIRfYD2MgbfmA6hO0aw3bPDZ+L8n3NB VBsTd0eudHXd4QNVnYMTsUrQKyonzCthpOSYB7liYwV6l2lJ6BuciFNuSp+xE/XCoIGHT61y+f 8hM= X-SBRS: 2.7 X-MesageID: 11479794 X-Ironport-Server: esa4.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.69,433,1571716800"; d="scan'208";a="11479794" From: Igor Druzhinin To: , , , CC: , , Igor Druzhinin Subject: [PATCH RESEND 1/2] scsi: libfc: free response frame from GPN_ID Date: Tue, 14 Jan 2020 14:43:19 +0000 Message-ID: <1579013000-14570-2-git-send-email-igor.druzhinin@citrix.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1579013000-14570-1-git-send-email-igor.druzhinin@citrix.com> References: <1579013000-14570-1-git-send-email-igor.druzhinin@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org fc_disc_gpn_id_resp() should be the last function using it so free it here to avoid memory leak. Signed-off-by: Igor Druzhinin --- drivers/scsi/libfc/fc_disc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/scsi/libfc/fc_disc.c b/drivers/scsi/libfc/fc_disc.c index 9c5f7c9..2b865c6 100644 --- a/drivers/scsi/libfc/fc_disc.c +++ b/drivers/scsi/libfc/fc_disc.c @@ -628,6 +628,8 @@ static void fc_disc_gpn_id_resp(struct fc_seq *sp, struct fc_frame *fp, } out: kref_put(&rdata->kref, fc_rport_destroy); + if (!IS_ERR(fp)) + fc_frame_free(fp); } /** -- 2.7.4