Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3022862imm; Sun, 1 Jul 2018 10:30:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLldHt4+erZRWsagnouDD4b8OldlcR1TWZfJCRpNnIvMCuMfNStLvL4bK1SlDnqZ4OPzL5T X-Received: by 2002:a65:6645:: with SMTP id z5-v6mr18929256pgv.71.1530466200444; Sun, 01 Jul 2018 10:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530466200; cv=none; d=google.com; s=arc-20160816; b=T2L0nAVD9407Xzy4ek091Qj5ywYCAt79j7JXijwYStAirRORXZXnl9CKYimaZ1agP9 pMRfMcNawG7sCrYxr3SKbG2VDbcliz5z0gatu5QqYHC8+2ceFmLRWbx6osTqesy7sPbY MbqaUd+6ojze44jn5Gio2iFaecS7uPP8PSZbXTqiNAlqxQm0tF9DyenDaKEMwneTHEy4 C28wAkJ8fCq2KIrOrJVHOIYPE+7NF7YH1RLOHqor9mcT2JlyU9mPc4LxWSOF2OJpq+w1 XEE78/arJ4RzVaYwcCZ8yiWquIDKELX97bwHfRBSEeOXWJhwycjUatpPIgkZ1cfssSWV SOwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=rW+Z1utEUz2Szauu+d/P9VpDeE/l3TDn0zzU8shYYno=; b=jZUbjCLQ8wTnI/76im04+6dqAxlltIL/telY4tIgvTZ3s7zjGat2RrX4ujBP5pgVex BDXYsRAj7SwIRbdk9m2HGsYk8sMgATFPVa9YGshxORLOzSzyslaz9VsQ7udHHRTGM1gp guZzy9DxBR9FeFceaJLArJLiEzUnU4bG1l51l2X/Kqgd+e8nvnA2JIPuZnjUXo7jGm0c rrTZRNxbcpUBju/u/M3kZuldF/FMbXRScOeTAE11VFpa/IXLOOj3U51tE4w+4Bwe9Z4K lDipQdlkKnTqmJ3zW6QgjFxD4ZDhr+3voc6DPEiMPmW7XKWnRC9NQTZA2xrZUl3+KGjd pAEw== ARC-Authentication-Results: i=1; mx.google.com; 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 h2-v6si9315048pfg.126.2018.07.01.10.29.46; Sun, 01 Jul 2018 10:30:00 -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; 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 S1031430AbeGAR2q (ORCPT + 99 others); Sun, 1 Jul 2018 13:28:46 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:36146 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031061AbeGAQg4 (ORCPT ); Sun, 1 Jul 2018 12:36:56 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4E192AD8; Sun, 1 Jul 2018 16:36:55 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Laurent Vivier , Stan Johnson , Finn Thain , Geert Uytterhoeven Subject: [PATCH 4.17 012/220] m68k/mac: Fix SWIM memory resource end address Date: Sun, 1 Jul 2018 18:20:36 +0200 Message-Id: <20180701160908.873832509@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180701160908.272447118@linuxfoundation.org> References: <20180701160908.272447118@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.17-stable review patch. If anyone has any objections, please let me know. ------------------ From: Finn Thain commit 3e2816c1078eb2b5a3276eb83d4da156b3e2d04f upstream. The resource size is 0x2000 == end - start + 1. Therefore end == start + 0x2000 - 1. Cc: Laurent Vivier Cc: stable@vger.kernel.org # v4.14+ Tested-by: Stan Johnson Signed-off-by: Finn Thain Acked-by: Laurent Vivier Signed-off-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- arch/m68k/mac/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/m68k/mac/config.c +++ b/arch/m68k/mac/config.c @@ -1005,7 +1005,7 @@ int __init mac_platform_init(void) struct resource swim_rsrc = { .flags = IORESOURCE_MEM, .start = (resource_size_t)swim_base, - .end = (resource_size_t)swim_base + 0x2000, + .end = (resource_size_t)swim_base + 0x1FFF, }; platform_device_register_simple("swim", -1, &swim_rsrc, 1);