Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1135238pxk; Fri, 25 Sep 2020 07:09:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+IvmgmZQnwYXV0xF4PVoSXzxKNZ7DqUMJAiTUwRerfapmpxfxJ8WZr6LAklcvJ9QMNy5N X-Received: by 2002:a17:906:4b18:: with SMTP id y24mr2829460eju.471.1601042983144; Fri, 25 Sep 2020 07:09:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601042983; cv=none; d=google.com; s=arc-20160816; b=VnvXG/ojpbCfcS5jvQP4xaFQFiKS/ZYH+gl6bShgz7c3sQL2LKTlEisxl0oHZJctW/ NN6OFEQWA3ct2scRX+YMKHUbJGnxAQEv2LuttfCoIhSGvYrOMxrWiZoWo6iS8GDnSBqF uok+Ft50zQaIKBgmbhFPmyV9t/AJchif8zA1Y2UzlPV0NYmp9LBv0KBvEOFLkZhcSOKx h/7A+v444OW2SU0cR8Iivedn2M49AqDI0c0Lu4TrzpMD5E1XzxQOCl5/8bPou2YKHDwd JDg3k60CDkCLx3bNZKdFeAbvCUVXMn9FCWy+YdBuUlbDU5Lwn16UYeXDNpe5z7Sn06uC 9ptA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=gwjBjIZjJCYBnWxBeMd/ZYSEonaH9dnEn2zjU/XiHBY=; b=nwmd4v2dl906q/ZzYdLBpx+v8zvEX2GGzQaPeQtFkEVA+B4d8yS+s9DvJgbVKO8nXg omSjUm1yh6QGvhngQuGAA9aYNmAKWch4G5kMxRY1G7zX9NCJ0JgDkxiO7sEfZqZeUL39 S3boj3hsqNueNHnM8GGtfqYUPSqUQURBvK1DzNYvolpZZqFZAvWP3ITDAVqZVtr31jvm dyfSpWI5gG2RPHGW1xMnEs+7yiv92lIIFkrR/BZS2b1VELtI6mrfa31vx4gwm+cwsVYT DmlcBljLWfKxI7v68p69XjLplCgVNpn9GCE1Oaoa/YsZpDhA/frLh7vHWWhj/25JytIH 3eKw== 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 n4si1905822ejs.15.2020.09.25.07.09.18; Fri, 25 Sep 2020 07:09:43 -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 S1728942AbgIYOI7 (ORCPT + 99 others); Fri, 25 Sep 2020 10:08:59 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:47148 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728959AbgIYOI6 (ORCPT ); Fri, 25 Sep 2020 10:08:58 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 58CF5DE3620179093242; Fri, 25 Sep 2020 22:08:56 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Fri, 25 Sep 2020 22:08:50 +0800 From: Yang Shen To: , CC: , , , Subject: [PATCH RESEND 4/4] crypto: hisilicon/zip - fix the uninitalized 'curr_qm_qp_num' Date: Fri, 25 Sep 2020 22:06:17 +0800 Message-ID: <1601042777-26150-5-git-send-email-shenyang39@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1601042777-26150-1-git-send-email-shenyang39@huawei.com> References: <1601042777-26150-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 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 f10bf99..4bd2c81 100644 --- a/drivers/crypto/hisilicon/zip/zip_main.c +++ b/drivers/crypto/hisilicon/zip/zip_main.c @@ -760,6 +760,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