Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1021653yba; Thu, 4 Apr 2019 02:37:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqxvrRDPt3t58MxZISPUynjN7VrTloMFCOKDVjOezGGXwjoB6RhPj9ngKFdhN+gcdfWDjFDO X-Received: by 2002:a62:1d90:: with SMTP id d138mr4690930pfd.232.1554370621994; Thu, 04 Apr 2019 02:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554370621; cv=none; d=google.com; s=arc-20160816; b=cbs5zWr/Z8h7di60HfVySGPMEOTR9FktjSwFm8UTAN56UhidOfiZ2FCaVvVOSEWZBV gQAjG8Y0D9l8F4uBZ5Ca0jLzFAXAUPB0qdPIoBmHDPn7ZMb6JGUs+vYLQ4xGgok7Q7qm 5b9gfm6hc9yW6sKXVkQxf/08n4SYRdzyF9FAZQ81L/he4YH6ENj5K8o/En6teJTBX08P KRi72OM1Q/HdxrOYDjBPnOG9XOevabr1C3lRSK4F7DHpwcMYSeNTKmG79DJxWoLrWa75 d3nyQq6uy0jUCusK89DpdXfaBKslNuo9rYdeZfqLv3sI2BH8QvUPYAsClqCPupLrQEV9 Z5oA== 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=/oS9iN3XztFM/6BXuLe2ArEGa2ctmTVt+GbyASJxkOI=; b=aTOgFIoKbkbMnN5HRHzKlplaFEIerjCb4kxiVLzyHmEdAuq3tXCewTMaTIhFZJeboY I6BIVdLuTTgX+oroTRM4b9rcmjJVtk6jFREfzPJ+3vBJz2t4bN0uHYfIhjbooIpgRI9c DQGVesq9C5ur8s+8tHuaZMIu+gLuq3cAG805J/AkdDcoij4EErgAwArxIi2BTVwvUY+O tNRijQQ3KsyMmZWhh/DQMYRe5MBS+Dsp2WftJPIBNQJqG7YZ7Xkj2DYv0drGwePS4cns 0fxvHRy/a/u1ITg6kJ+CtASx8CKRCadC8m5S8X0ZcIu6QMnR7Nij+Y7Hzl+DQFGfsxZm S9Og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WpyfAQ9Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si15754403plk.85.2019.04.04.02.36.46; Thu, 04 Apr 2019 02:37:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=WpyfAQ9Y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732102AbfDDJG1 (ORCPT + 99 others); Thu, 4 Apr 2019 05:06:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:44876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732308AbfDDJG0 (ORCPT ); Thu, 4 Apr 2019 05:06:26 -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 9C5D7214AF; Thu, 4 Apr 2019 09:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554368785; bh=2+ICQl78TVC8joMBp81XpTgleUfjKX0JEXSHpqrxXWw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WpyfAQ9Y990uVfOKN3ikQltdhz6KNT67TGseyT1wo7Re4GS77pI5vnyjByQKu58Ou 0EK6dR9fX16XlWOltpSmSKIvVHOW0AsZ0GCWuQcipAK4bn09cYH8A446RQgZ8ZxPLG jB8QUY935nRNb6dnkjpszuyRki5kgrS/sH4q60Lk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Buland Singh , Sasha Levin Subject: [PATCH 4.19 161/187] hpet: Fix missing = character in the __setup() code of hpet_mmap_enable Date: Thu, 4 Apr 2019 10:48:18 +0200 Message-Id: <20190404084610.689304863@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190404084603.119654039@linuxfoundation.org> References: <20190404084603.119654039@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 24d48a61f2666630da130cc2ec2e526eacf229e3 ] Commit '3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes")' introduced a new kernel command line parameter hpet_mmap, that is required to expose the memory map of the HPET registers to user-space. Unfortunately the kernel command line parameter 'hpet_mmap' is broken and never takes effect due to missing '=' character in the __setup() code of hpet_mmap_enable. Before this patch: dmesg output with the kernel command line parameter hpet_mmap=1 [ 0.204152] HPET mmap disabled dmesg output with the kernel command line parameter hpet_mmap=0 [ 0.204192] HPET mmap disabled After this patch: dmesg output with the kernel command line parameter hpet_mmap=1 [ 0.203945] HPET mmap enabled dmesg output with the kernel command line parameter hpet_mmap=0 [ 0.204652] HPET mmap disabled Fixes: 3d035f580699 ("drivers/char/hpet.c: allow user controlled mmap for user processes") Signed-off-by: Buland Singh Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/char/hpet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 4a22b4b41aef..9bffcd37cc7b 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c @@ -377,7 +377,7 @@ static __init int hpet_mmap_enable(char *str) pr_info("HPET mmap %s\n", hpet_mmap_enabled ? "enabled" : "disabled"); return 1; } -__setup("hpet_mmap", hpet_mmap_enable); +__setup("hpet_mmap=", hpet_mmap_enable); static int hpet_mmap(struct file *file, struct vm_area_struct *vma) { -- 2.19.1