Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp1349126ybp; Thu, 17 Oct 2019 11:25:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLL3Wd3P0x72tif/+/qhGynRBuVvnAjTSihgY9M0IU8EQTH8/VUsbSYCdNO+izW2ETnOEV X-Received: by 2002:a05:6402:1454:: with SMTP id d20mr5488186edx.53.1571336751557; Thu, 17 Oct 2019 11:25:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571336751; cv=none; d=google.com; s=arc-20160816; b=dsvQoZ4k2ONpIE/uJQj+81UEUDX+Yq3QLBnUNo8Z0E4bl+ncqWNKTvzqQvfdGVC1eO 0VC9STsW+brAYRrVZ0804wF1TVqtQw0BTKjoIgF+5OpQXVOgf5wxxhnfdrEZkpF1kjWV 2bgP3kmgTEUlEswc77SqPzsl8UVYEs5efTHg46UMeageial7dvRhHaJffPf8OfQtEbxx Hwjw8RZT5DW3NZ52vaHsSb3Vkg3jICoVRv9/6rcU6aLLPHVRP1dzvXcKO3AitaDSmueU EnT4c9aYRTqIy44e5gjOh1NBddRgMEzrlyrI+IXysBbErm39dh6MgPC1af+RJI3Pha9l qvWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9JGg443DjVmEWIX+mlOUy6BHB0auqQ42oiAp9DKkvAY=; b=fuoX/fUUbO6JlmhEFFjldWgY+481tbURlseJ41CsIw2g9wwyYfTB6hxmQP/c73gAKr bqsye0Ho7RymKxWouSaaA5WmBoWmnnM20HZ0n4hBYY7O41WMqPG0i0O5zD3t/l0vKK3w TM/zUxEmS8ZYNpR8SiijXp0N5tqP9/xPtzvNbMC8cbGRC4uUf8boDh7QVCU2cVrJWBBO VzkSAirJoInH4XlwMejL4ai8QvJSKLYKirtYdYPX1oq7S+T2MZ2pYP72WBAJU15n9hRK jo68WIcI8kLi5F7N4pmi8JbTOUzU/vFKX1Iz4fdzPfBJyUAXAOiX2e0kGIoq+c/zgRSO 7ZGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="RO/ZYagQ"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b16si2138825edb.341.2019.10.17.11.25.28; Thu, 17 Oct 2019 11:25:51 -0700 (PDT) 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=pass header.i=@kernel.org header.s=default header.b="RO/ZYagQ"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406820AbfJPWDd (ORCPT + 99 others); Wed, 16 Oct 2019 18:03:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:54150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438497AbfJPV7Z (ORCPT ); Wed, 16 Oct 2019 17:59:25 -0400 Received: from localhost (unknown [192.55.54.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 85114222C5; Wed, 16 Oct 2019 21:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571263164; bh=/iJQzNXElDmKgwIE4nZvZC9laLfJRJJ8f7XcsOp9AWs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RO/ZYagQ6vWWLGqcA/h8hrBwliTXUmGAkmssGGX3s9dCuR1mcgpmXBLk0qZC27I6p rGwJfVhDcVKqb8yqN6JDA70rXxlauP+natsWzFNa3Mtng/54Lln3jv1pg/IJ/k9B4Q ppH1oYucLFetKIyJjnBhK5RqJJYanRrHlPXtk0/o= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Adit Ranadive , Vishnu Dasa , Jason Gunthorpe Subject: [PATCH 5.3 092/112] RDMA/vmw_pvrdma: Free SRQ only once Date: Wed, 16 Oct 2019 14:51:24 -0700 Message-Id: <20191016214905.597203901@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191016214844.038848564@linuxfoundation.org> References: <20191016214844.038848564@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adit Ranadive commit 18545e8b6871d21aa3386dc42867138da9948a33 upstream. An extra kfree cleanup was missed since these are now deallocated by core. Link: https://lore.kernel.org/r/1568848066-12449-1-git-send-email-aditr@vmware.com Cc: Fixes: 68e326dea1db ("RDMA: Handle SRQ allocations by IB/core") Signed-off-by: Adit Ranadive Reviewed-by: Vishnu Dasa Reviewed-by: Jason Gunthorpe Signed-off-by: Jason Gunthorpe Signed-off-by: Greg Kroah-Hartman --- drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c | 2 -- 1 file changed, 2 deletions(-) --- a/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c +++ b/drivers/infiniband/hw/vmw_pvrdma/pvrdma_srq.c @@ -230,8 +230,6 @@ static void pvrdma_free_srq(struct pvrdm pvrdma_page_dir_cleanup(dev, &srq->pdir); - kfree(srq); - atomic_dec(&dev->num_srqs); }