Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp787143ybt; Fri, 19 Jun 2020 13:49:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2aYRdG59SjSJUyoFt79pOLkVrfGnYefba7PsiGmypX+kr4X6tXc71QZINEP7Az6HclasV X-Received: by 2002:a17:906:af48:: with SMTP id ly8mr5304670ejb.28.1592599741903; Fri, 19 Jun 2020 13:49:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592599741; cv=none; d=google.com; s=arc-20160816; b=jHJfNCoKBV60FUa4fh4IKXKik8P9ckSYOmDjctplIpaMm3znu04t/W2EehqrIhO2sI UiLTraPDbs26Yqn4gpsX6D4KofztdMgFPoYKGK+be6FCRW7q3DX4mevnkyX7N6Hu6WBm Zqyhx1zbmdMZQpezkt8hiz7qdkl3czRHtN/liR31NXlE+ASQicYzoTt6BGccsGEDIwnf GkkWIKE/9ZLFD9tn4A6Cq7cuoSYs4eMfzTMeQAFAa/v1W6ZA0rSANrZASSlEVkHV0ol5 pOMCH/mqCjThU0OVgrVjYaKgCTsEczfqBGR/7+Yi5CdjB16iTgV/M7pnkPUIJmbUOjz+ O2Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iEgipgwj4hS3KDezLb3Jth6NMUvM+tyiFCMP/FYwEFs=; b=KtHj3s9M/NJza32EtWx/aFqn287mPoEnVaV3ZtELr+CMGkgo5VbpNnLh2X8vD+3x/K 47WGRI3KguJmT7wSAr5eDb+TJva3lkvK+FnmOL4RuZedvNBSTDThYbyCEv/3TMXyqpgH gdJZbzEomc+p7d0HCbInB3/BMj3xxkgUVjzSsVBiWbp+N5/ocRZ3jbhGjwZ5WjeGoysV qXMS/e+iwwYhrUKWMMmzIXVc6ulZ4xbVOkrlK6nNfIQgj27d1i7YEm/C/2orqw2WHs5K MwPMVIgPFT4ppXruX/2zMy+nDS6aa9NTl/MPiRFAbf3MMGIlCPv/xIxIHc4RRIq6oKxd oMdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=BXVvwBm1; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i22si4556154eja.116.2020.06.19.13.48.40; Fri, 19 Jun 2020 13:49:01 -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=@kernel.org header.s=default header.b=BXVvwBm1; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391057AbgFSPDt (ORCPT + 99 others); Fri, 19 Jun 2020 11:03:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:60320 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391015AbgFSPDc (ORCPT ); Fri, 19 Jun 2020 11:03:32 -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 F0BEF21974; Fri, 19 Jun 2020 15:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592579012; bh=4JFtDNHFFW5pg3sH6TQO9VaAPDJzQon9y+GOPrV4sBw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BXVvwBm15v3VDqLgKG41HNVVTCDEPT2G+lrrmthtdT91gVs1Y43AF9/wXTXEVnta7 p1x87M3TOO1OZtndRvX/uuTGJ1r08aY7anlZ0uoW1jM9wbgZxqOp3jDuFayXrQPVyN srVyn+FLV8q0fpLdhFpv/UzC5jZzlnszK66J3KSo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Roxell , Arnd Bergmann Subject: [PATCH 4.19 242/267] power: vexpress: add suppress_bind_attrs to true Date: Fri, 19 Jun 2020 16:33:47 +0200 Message-Id: <20200619141700.304836871@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200619141648.840376470@linuxfoundation.org> References: <20200619141648.840376470@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Anders Roxell commit 73174acc9c75960af2daa7dcbdb9781fc0d135cb upstream. Make sure that the POWER_RESET_VEXPRESS driver won't have bind/unbind attributes available via the sysfs, so lets be explicit here and use ".suppress_bind_attrs = true" to prevent userspace from doing something silly. Link: https://lore.kernel.org/r/20200527112608.3886105-2-anders.roxell@linaro.org Cc: stable@vger.kernel.org Signed-off-by: Anders Roxell Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/power/reset/vexpress-poweroff.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/power/reset/vexpress-poweroff.c +++ b/drivers/power/reset/vexpress-poweroff.c @@ -150,6 +150,7 @@ static struct platform_driver vexpress_r .driver = { .name = "vexpress-reset", .of_match_table = vexpress_reset_of_match, + .suppress_bind_attrs = true, }, };