Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp916481pxb; Wed, 1 Sep 2021 12:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfibvGv7a4YUeSLoXVH2L92Y4s8F5ABuZ/T8tJPsbicXfFX/jjCr4rplkdWkDg5yiJY5b5 X-Received: by 2002:a5d:8458:: with SMTP id w24mr973591ior.168.1630525006048; Wed, 01 Sep 2021 12:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630525006; cv=none; d=google.com; s=arc-20160816; b=Fm3/qbRINxj9aQx+14eYHOHc8le7gzh+NE+sjBN4vgXXTi85Cj1pqIth009s2ZNrlh dgWGL40QmP3q5MbBhHr2oXVclpY93U3S8gEi9OBr2Ytbfdw8m3DH6xX92GdnomXdQNjD yWcH1w2L0uAjLwqjcIKLBtMnAu2+Gs2qfsYvEfAuUziVxBatejatvx/Ek2MCO4SVFLIw fqxs8byShzmQlFdvhLMrPzb7wFVwdF5t8ge5cWw5QVJz9NaigSKg1lUIMUiDiTf4Mvoi pDq4/XrHda8Dp8e0mIjrpzzMGJPrSFJ2mff6I+IsIFPGApVytWFxFXKf/mX/byp7uGVx N/tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=N1ZLmH6Wft5hPavOL5srYgu5nYvmMeGX62izGbm2nI8=; b=kixAKmHeSIY639rPuL3LjhI8As9da7o2NTPLRC9AOalNPmt4ackQyIWPkIVCZJ+RU3 9J/hh8qL4gg3MOp0595ousrIeOLz0p8FBTo0FidYoH9DwX80IlaN62oRAbS/IJpBgwDv atCvA6aQ5nvOjy+T8zV5aMF7nJC+QK0xfutnmHR8LwXQnN2rxEHLBtSvdLKNtdcZ9MQ8 bvqnZbIu999RD00WvxxQpGbiPfYibQkWLYlRll2/gAUIXbZCH8JWJKVIkj3Yyh2KcsIJ ike9eAyyPd94lodx/R5pQ+GF/tpiK7/V2o5DaYx8F6d3lc4UwWLL2ocPGcVubnapbTmE aGDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1x8Q1zE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q14si535129ilo.128.2021.09.01.12.36.34; Wed, 01 Sep 2021 12:36:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1x8Q1zE3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344647AbhIAMmw (ORCPT + 99 others); Wed, 1 Sep 2021 08:42:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:43544 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344642AbhIAMju (ORCPT ); Wed, 1 Sep 2021 08:39:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7D6A1610A1; Wed, 1 Sep 2021 12:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630499738; bh=dKA32apQBghroQQaMnexSRfBljkENbuWIrpf1wYT4u8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1x8Q1zE3v6LSWasVkz1H86X8yazLifv7f9MfeGwclszTNL6At3hHsvcQBROZoX3N7 8oTGbSbYxgjKZ6Vdqvh02ms6FoW8FTHU+UkiSZKlJj/qIp4HQkGJLYVlhfGtvpkksK LZ8eqIwHmCC1HbQRe+jsO9gx3nI3YKq+roWRcO94= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Naresh Kumar PBS , Selvin Xavier , Jason Gunthorpe , Sasha Levin Subject: [PATCH 5.10 023/103] RDMA/bnxt_re: Add missing spin lock initialization Date: Wed, 1 Sep 2021 14:27:33 +0200 Message-Id: <20210901122301.304153557@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210901122300.503008474@linuxfoundation.org> References: <20210901122300.503008474@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Naresh Kumar PBS [ Upstream commit 17f2569dce1848080825b8336e6b7c6900193b44 ] Add the missing initialization of srq lock. Fixes: 37cb11acf1f7 ("RDMA/bnxt_re: Add SRQ support for Broadcom adapters") Link: https://lore.kernel.org/r/1629343553-5843-3-git-send-email-selvin.xavier@broadcom.com Signed-off-by: Naresh Kumar PBS Signed-off-by: Selvin Xavier Signed-off-by: Jason Gunthorpe Signed-off-by: Sasha Levin --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c b/drivers/infiniband/hw/bnxt_re/ib_verbs.c index 266de55f5719..441952a5eca4 100644 --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c @@ -1691,6 +1691,7 @@ int bnxt_re_create_srq(struct ib_srq *ib_srq, if (nq) nq->budget++; atomic_inc(&rdev->srq_count); + spin_lock_init(&srq->lock); return 0; -- 2.30.2