Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp689543pxb; Tue, 5 Apr 2022 18:54:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/zkZWPp7wFGXmoub5PIQWEqew0dAP+ctIV3fqvJhWxdq3nV3Ks1ZEOG2sVjYYlvzZaJ88 X-Received: by 2002:a63:e442:0:b0:398:c06b:169c with SMTP id i2-20020a63e442000000b00398c06b169cmr5290369pgk.170.1649210072335; Tue, 05 Apr 2022 18:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649210072; cv=none; d=google.com; s=arc-20160816; b=v927mH3+/KjTdrxFxo8uumOvkMMpMFvBnn097vWg6gtctCkpupJpQkxEuYekEUNpFE Y12/Ibt3jOFvGtHeJQ3bksDjfJYglhtRoSNuTFEsNccvS4Btqy0zAMJDG0VP4TyeEaBS BmvBumJeMC57hVpUSRfjYG9/dqNKPkdbyXvj3fcYGxuUT7K/u5c0rwV7YLDwuE298D4G qO9fFe0l+uOOtva2y1Bgg0Mt+FsSvMFse7T+9ECemI6OO2ydtVg03hWeCS1Ax/813VUL rQy7D60jnx2rOqFI+AUOYvrJ2hYuOA8SghtSF2wS3r1thuYxwCkProhvx9wXOeulEw3E FqCg== 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=/YhtmdN+jJPIm3hhBvRv2E8tef/gVcRj/s4keSNdaR0=; b=ulvCBZae5c1/p9Q2cc01tli+p7FdUqPbZxZC+G/PNRUzWAoygz652DqHT1z0dhjyMt I8MbctOnLbRqZqgrUdCJe1q9WX7S+rBXFMgBZX7xBlRlJc7dsndZGRg++EkbgCg1lCmG pMhj01lZLaAgpriVb8KjtA8B0YbAV5JKI20cXf7MgiR9xztlXKitv+RKZ/sF4fgYl3s0 YfoCXcrorF4iT67DPVEp3OdoflBzzMRji1MbJkv2PSHIZrdr/n3rk0sL6ZhIsKicY31N dYTwkD4GCOoC3yJkyVq0gcLcjcqEIaRLIdik/geGlWrVJ2kYM5C8JZkLnjDnP0+gDXnb 8B7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="thJH/nrB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n8-20020a170903110800b00153b2d1651csi15570461plh.292.2022.04.05.18.54.18; Tue, 05 Apr 2022 18:54:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="thJH/nrB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1351435AbiDEM5Q (ORCPT + 99 others); Tue, 5 Apr 2022 08:57:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243086AbiDEJIp (ORCPT ); Tue, 5 Apr 2022 05:08:45 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82ED092D0D; Tue, 5 Apr 2022 01:57:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 2C791B80DA1; Tue, 5 Apr 2022 08:57:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BC56C385A0; Tue, 5 Apr 2022 08:57:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649149056; bh=EKAYW56pgoj/fMmDPk6hd7qfExudZsuNd4gA0XItQsg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=thJH/nrB7wgeiXLgUiCGzfyED0cNDGJLlFjoX6S6Lk9F/tRscTJyyZ07ioxlqjHET 9SGQ61KSEjtFwBvzgY3nJy2bh+LqN31KGat2dd1ta/I2xi5Se0Mbs2ONngNpHtlzR4 juBVpArxyNaMjP8woMUgl30BfjZsh1bv4AOhP+cM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yihang Li , Xiang Chen , John Garry , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.16 0551/1017] scsi: hisi_sas: Change permission of parameter prot_mask Date: Tue, 5 Apr 2022 09:24:24 +0200 Message-Id: <20220405070410.640136355@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen [ Upstream commit c4e070457a93705e56ed06b3910d9e5fe56d3be3 ] Currently the permission of parameter prot_mask is 0x0, which means that the member does not appear in sysfs. Change it as other module parameters to 0444 for world-readable. [mkp: s/v3/v2/] Link: https://lore.kernel.org/r/1645703489-87194-2-git-send-email-john.garry@huawei.com Fixes: d6a9000b81be ("scsi: hisi_sas: Add support for DIF feature for v2 hw") Reported-by: Yihang Li Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index 11a44d9dd9b2..b3bdbea3c955 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -530,7 +530,7 @@ MODULE_PARM_DESC(intr_conv, "interrupt converge enable (0-1)"); /* permit overriding the host protection capabilities mask (EEDP/T10 PI) */ static int prot_mask; -module_param(prot_mask, int, 0); +module_param(prot_mask, int, 0444); MODULE_PARM_DESC(prot_mask, " host protection capabilities mask, def=0x0 "); static void debugfs_work_handler_v3_hw(struct work_struct *work); -- 2.34.1