Message ID | 20200310123617.779350871@linuxfoundation.org |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=QSPG=43=vger.kernel.org=stable-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73E9BC10F27 for <stable@archiver.kernel.org>; Tue, 10 Mar 2020 12:43:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4A624246A1 for <stable@archiver.kernel.org>; Tue, 10 Mar 2020 12:43:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844196; bh=OMmxkevDUNxaHHi6hTgeEqTy7B/zjT98vwhasWl1utg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=KhQMVEos8i+ajc7eHR2SSAitfvufnXpKaitdsN52aNmJj/btK+qInycfjlGzMmcqK TfzEmQ3Tf0vQ4lczCEt9p10Mg2xxCu+dyzH/SvVUDsZiaJButXbnsTJG/MsaDd2FrA +u6RYenaJ74cBfuiNrRrKzOMWiWLBIVHtsfgu6ag= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727527AbgCJMnO (ORCPT <rfc822;stable@archiver.kernel.org>); Tue, 10 Mar 2020 08:43:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:43496 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727063AbgCJMnM (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 10 Mar 2020 08:43:12 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 005B424691; Tue, 10 Mar 2020 12:43:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583844191; bh=OMmxkevDUNxaHHi6hTgeEqTy7B/zjT98vwhasWl1utg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0w3e82rfEnuwP+c1Is1jEa/tTgynjyofzrglH+DthztRhV2rOcw/jfkXMgAUQMB5Q ZpysTWRCcBYwF1hdNYjE0/mWLkyhkx/XfkAEIlweCJgWyETkDyryFhRfSa3oR88XTA iQo0/k2f2JFV6U1hCvxPk7ufvyLgxp4FfwcxgKy0= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, syzbot+cb0c054eabfba4342146@syzkaller.appspotmail.com, Bernard Metzler <bmt@zurich.ibm.com>, Jason Gunthorpe <jgg@mellanox.com> Subject: [PATCH 4.4 65/72] RDMA/iwcm: Fix iwcm work deallocation Date: Tue, 10 Mar 2020 13:39:18 +0100 Message-Id: <20200310123617.779350871@linuxfoundation.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200310123601.053680753@linuxfoundation.org> References: <20200310123601.053680753@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/infiniband/core/iwcm.c +++ b/drivers/infiniband/core/iwcm.c @@ -125,8 +125,10 @@ static void dealloc_work_entries(struct { struct list_head *e, *tmp; - list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) + list_for_each_safe(e, tmp, &cm_id_priv->work_free_list) { + list_del(e); kfree(list_entry(e, struct iwcm_work, free_list)); + } } static int alloc_work_entries(struct iwcm_id_private *cm_id_priv, int count)