Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2728436ybh; Fri, 24 Jul 2020 23:11:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLHvXXr3kxu+Ju4PgF/2wHpXxPtK9WlwTu2C0KgxyHdAzYhrL6Csx/wmZ3fIkD3ZDXJ89c X-Received: by 2002:aa7:d88e:: with SMTP id u14mr12238401edq.11.1595657471811; Fri, 24 Jul 2020 23:11:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595657471; cv=none; d=google.com; s=arc-20160816; b=Yc1DoLUsR5w7MoUX2h7Ofp828BZ28NEqEvwQAPBQuxZ5MAxEnolHJ/Vxx6AmbkuC/P YUjvjGJMp9nUhhey8Cbz9H24zzC07ER8ZFPmJbH12R3JjEBOMvGqeKtq8KN1njIe+5bx y6NvQLijbDt9eN2fOQBTkekyRooGraxmO5gxUu2Y1bO1AIz4d0cymmgFO0U5t1cDPz2V vvJitiF2vvS4Gy5wrL6kuCiXCIJqFGK+ofYXMXBKL3sXMdc2rJi6Ik7qW47qivq3JHTw oCXVo3BQidGrFJHpKsBh7rzG8ctB58sPmWDYCgVkwCcVC/MyVEh5756UYl2opeJmi+62 woOg== 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; bh=g6igSdcqR+WcgJLOADQF5OZxXYoiuSXXp3DXCW+9cNM=; b=XIB2MgOpbDkMb9pC9OgoGutsvf/P6fFRmpZpRybJqoaNUf2g4HlUIMyvgYsiCcqxdm t3VyxNpSxbsh/2JJY5wxH8C8bo1zovCOa8Zt+51m4znm57Ti8dQMRG9CZXQWwnWFQBAn 27Z60NpCLMZdaREyWXZynJfoj99jOguz3u2DG8VVGWhZNPeus0vplzML+s04Tfni0KJ9 tGl9FmzAevjIP8Gf10prkgEwTdI1ePt+RhTG4cI5f+Jtv95tfYo8rAhP+Rp9BKHD5pUD i4Vw9lNolBNYwiywX2jo8ho9tshzFeddSPTbXBHcZfCOFFnsdtfWDNF0pMMSSEwpI0Dz Sp9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s6si408511ejy.110.2020.07.24.23.10.48; Fri, 24 Jul 2020 23:11:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgGYGJr (ORCPT + 99 others); Sat, 25 Jul 2020 02:09:47 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:33162 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726273AbgGYGJr (ORCPT ); Sat, 25 Jul 2020 02:09:47 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 94D5412D207D22F38E03; Sat, 25 Jul 2020 14:09:28 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Sat, 25 Jul 2020 14:09:21 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH 4/4] crypto: hisilicon/zip - fix the uninitalized 'curr_qm_qp_num' Date: Sat, 25 Jul 2020 14:06:50 +0800 Message-ID: <1595657210-3964-5-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1595657210-3964-1-git-send-email-shenyang39@huawei.com> References: <1595657210-3964-1-git-send-email-shenyang39@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org From: Sihang Chen The 'qm->curr_qm_qp_num' is not initialized, which will result in failure to write the current_q file. Signed-off-by: Sihang Chen Signed-off-by: Yang Shen Reviewed-by: Zhou Wang --- drivers/crypto/hisilicon/zip/zip_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/crypto/hisilicon/zip/zip_main.c b/drivers/crypto/hisilicon/zip/zip_main.c index cc4a829..47efc2f 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -762,6 +762,7 @@ static int hisi_zip_qm_init(struct hisi_qm *qm, struct pci_dev *pdev) if (qm->fun_type == QM_HW_PF) { qm->qp_base = HZIP_PF_DEF_Q_BASE; qm->qp_num = pf_q_num; + qm->debug.curr_qm_qp_num = pf_q_num; qm->qm_list = &zip_devices; } else if (qm->fun_type == QM_HW_VF && qm->ver == QM_HW_V1) { /* -- 2.7.4