Message ID | 56CB2A6F.5060006@nextfour.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5A1F5C0553 for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 Feb 2016 15:36:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C1F52040F for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 Feb 2016 15:36:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0BCCB203DF for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 22 Feb 2016 15:36:14 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXsVU-0005Em-O3; Mon, 22 Feb 2016 15:34:40 +0000 Received: from mail-he1eur01on0084.outbound.protection.outlook.com ([104.47.0.84] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aXsVQ-00056O-3p for linux-arm-kernel@lists.infradead.org; Mon, 22 Feb 2016 15:34:37 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NextfourGroupOy.onmicrosoft.com; s=selector1-nextfour-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=i/4V4chFIhEC0Zwf5InqT0kuegdUREdnChIzJg8DQ6w=; b=Kub63pLsi5/I7GKIqcNa1fiIAU3K3ANSgo+UCJOGw8o8ISeImqJXQHWfvpkdFwaChVoj7P99hGGM6oYWXYs2haolOCHr6XiefYZISziNH8CHgqh00anFaPm8DhkxuYShgAoahuB+E7we5KHUwyeIAN4OJKglwQ12KF65KUG1KB0= Authentication-Results: lists.infradead.org; dkim=none (message not signed) header.d=none; lists.infradead.org; dmarc=none action=none header.from=nextfour.com; Received: from [192.168.1.71] (84.250.21.106) by DB5PR07MB0903.eurprd07.prod.outlook.com (10.161.196.19) with Microsoft SMTP Server (TLS) id 15.1.409.15; Mon, 22 Feb 2016 15:34:11 +0000 Subject: Re: arm: set_memory_xx fixes patch missing? To: Paolo Pisati <p.pisati@gmail.com> References: <20160222150911.GA25429@luxor.wired.org> From: =?UTF-8?Q?Mika_Penttil=c3=a4?= <mika.penttila@nextfour.com> Message-ID: <56CB2A6F.5060006@nextfour.com> Date: Mon, 22 Feb 2016 17:34:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <20160222150911.GA25429@luxor.wired.org> X-Originating-IP: [84.250.21.106] X-ClientProxiedBy: DB3PR05CA0031.eurprd05.prod.outlook.com (25.160.41.159) To DB5PR07MB0903.eurprd07.prod.outlook.com (25.161.196.19) X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 2:tlQZz54ni2bDwlaXs4/AKiBFLacd5m7LwQrjIUSXtM2Ol2JShpeiW5/TybmydyTALk+/k3rkvJ2TLJxv18smFeRB7Xtm//n4xYiYSDr+P0TZJ2Lnxmz/7Uusxw9Tko1t0lU1q1k5dgz6mvaw+1DlkA==; 3:qq99qsU0oGt36MPIJYVP+fji1HzLro30/GomBYPKphvPwOeG9xMSn2iaKqZcCLrXa4OPC4bTG4u27ekSSEJEVaYCcKsMuGdDAYvro9slOjR/H5aandq0DHy5bph6bw/I; 25:/MdRvG3VE2IWbk9ZN2yB0Ah7u/T7lelW19Y8ydEVQpKM5lwaVZ/+frdwUUEoU45+qCFgID/10C4UgsI8yiIXxNz63xmLR6SONMkCETDq1RLX2YUAFgiblQz4LfN45oFXMwzuq4aRp41HPCsGYNh9nmHiVbYWwH+ymlr0Bh9hBS/u/ZUi+Vsks3DAARh5znizQgknvM6QpxqnEnfBNtOOmZ09j4QEAK2bJW17vtn4RZeZorq4MYUg2utV14b5fSBLz4cgA8LLCjpmaMO1TFey32zwq0FDu2VfM6Oi/s52kiGKY/Cs4CA1+jdD9bkpr48Wn0M7TYZSEhIXE1xf9PO3R+H/GiFxq31LusYrZBgENNY= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR07MB0903; X-MS-Office365-Filtering-Correlation-Id: ada3cfcf-58a6-48fd-dea1-08d33b9d9ccb X-Microsoft-Antispam-PRVS: <DB5PR07MB0903B461A2A63C253554F45E83A30@DB5PR07MB0903.eurprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046); SRVR:DB5PR07MB0903; BCL:0; PCL:0; RULEID:; SRVR:DB5PR07MB0903; X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 4:au81nEa2ylVrubs9qQPWIb1YF6COMviQzDhzDascQIIzZ51Xd33dPvPN69fL8fuBdF4doLWJRVkOeqhwF25hNcRabxjmINqxgPzuCNft0XWEnuRj0XKuLzk9l7C3yx/aglApESAg7evGM5vOUDKXayTBb51MsjY/cCDPMxTXc5WEwKqtwW7U9FRrQIsFkceZMJJlA7t4tLlo4SUng9IkDAWQzSdG2fc04QmGDE5Bhi1zdzEQOFKvSqj21ukEbZWdgMux+wYZShsTVE6tHPKyMpHDTArqZWj2fpIUVW0SInpRt2wDFlWrHWrU54l9oEb8EF8Od3VhDQOIir93JwzIkP1Iw6MA6QB9FB1IqkoAUk0qI2tajd/4o/HwnIVMCkw8 X-Forefront-PRVS: 0860FE717F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6049001)(24454002)(92566002)(83506001)(6116002)(15975445007)(50466002)(2870700001)(19580395003)(77096005)(19580405001)(80316001)(4001350100001)(2950100001)(64126003)(33656002)(122386002)(40100003)(86362001)(23746002)(65816999)(54356999)(87266999)(76176999)(189998001)(5001960100002)(110136002)(42186005)(87976001)(3846002)(50986999)(4326007)(1096002)(47776003)(65956001)(66066001)(36756003)(5004730100002)(5008740100001)(65806001)(2906002)(586003)(117156001)(15188555004); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR07MB0903; H:[192.168.1.71]; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; DB5PR07MB0903; 23:U1UNQMmujvTWvyGIhu0CcWL2Ct4Xjlliw2bza?= =?Windows-1252?Q?Eea1yG4ExGoSduVV2O1ETqhCQZAvnidoyIuJA3ZbLdNT1lgchZfTgDcI?= =?Windows-1252?Q?RchuFUQI7AxA18Ps3IBC0DQDpSEig/fQ9/geVtI+UHpbI5e3FVfUsC+F?= =?Windows-1252?Q?7F/lrTPD5Om/OgQ4tR8DOcbGFNBBeSlgUyslzpdLicpojEX8cGOJtKPz?= =?Windows-1252?Q?xRsRpeNnlc4YZ4oBxJ5MtwZ9wNQ9+JrSMDnmPPz3UDRiWgtYxblVjPWE?= =?Windows-1252?Q?mbfTDb3aXC1Am42IbyIa+Xy/IS2t8KaYrd4d+TwO/ueci4G0cCXdq3Ht?= =?Windows-1252?Q?CfqF/isSPR2zG2s06Ein0lXGsD8Q3G4+DRQ7hNEXkJTFj6TFJi6qKXs0?= =?Windows-1252?Q?+SGuUeRiT78vDOrWa5gfnk9rc8CpLO5+amTLrlEPHgViIf7CzW0TZxX3?= =?Windows-1252?Q?XUwzBQOECFcO/CEI/6Jy2QHpI7qY1/L/1t2VZMzCQapA6E3+7ebtXXT8?= =?Windows-1252?Q?xSmVtNVWen8JEjWGh8LtFIfLZwMYLz3fTGfNBCToYkyQnUbCpiAjAtEx?= =?Windows-1252?Q?aRGu2PPmXIUm1Qu4OrlOtzqc34seyJrWybgWTW/HS1mjL3yLBrLVS40O?= =?Windows-1252?Q?zUZ3CfIOj8qrlLi+UWr488FxH+VhtmNHodWk+9rdovVc0qohSIfNcBIz?= =?Windows-1252?Q?CR9/NJ+he5ifUHCXGC+JLvqndfO9HDyxpPCJtLkUw6Xn3DDe2Hpxqj+Z?= =?Windows-1252?Q?/MOdh9wyvFSIkPGWFbXQyMZBI5eU/TTMzHW46PM5fTYpll7+dTCyPBPC?= =?Windows-1252?Q?LExY59SPEIKyfjnhM+z4SVjdRkogroSaC3PVwv5Cc0s3rQmvDvLulm2M?= =?Windows-1252?Q?RMphsfjehpE0gi1mGC9RVRZ0o9uMhVdQb2/dAyGFpVfj9Cl1ZUOLawMy?= =?Windows-1252?Q?08emYPSxHWwBTYCSCxDmPQ2dLqScl35jdoCuvMVSBIp7Bk7qw1QTN99k?= =?Windows-1252?Q?6fF+zr1kz5MDQtAQDx59jvWwFCtryBsJvwJN+BA2laqkma4DDAG2uKgo?= =?Windows-1252?Q?/05T43LFaoGL3Q8In+ERsN3e6bKM2AVEemfLij720ms4AKxfmsQp3Jwp?= =?Windows-1252?Q?TC03Jmdziq4JMi6Q4L+exVdG89KvAXFAKRkBybNi4EVsqV5R+uM8xBkW?= =?Windows-1252?Q?R+h1zzlTz2KZrhnmTwW1YRB+UrBGSUqMGJ15SzHy/HDdOwGNCcoCmejF?= =?Windows-1252?Q?lHNTNftfJIkMLJOL6NJ7fLJHhZh8QH91Xe7MMm9okY9hjx9hZLnD2EL7?= =?Windows-1252?Q?lJ+?= X-Microsoft-Exchange-Diagnostics: 1; DB5PR07MB0903; 5:/tikMsBP3Xu6cND9kKmaF2cxXl7bY1t1ai+yO5wfUy70w06am7rinSeUZGnh4lxonUACDDW97nqFMrfAaJYGeDbZEVspBqQIduKgin4UlT5DB0NU7dUWOfEbV0EpWUkPJ2t3Uc5UcLB+Pq7dvfOAYg==; 24:vbb87okNWUNGwg8E0oXCJ6no5Hn1Ryw0zUVXGPkJqUZDllk8kHHM9V1/l8vbdZy2nlxLhoscgezD8qZhC4XN9aMZl00IzuQHqgj56QODhiE= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nextfour.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2016 15:34:11.2601 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR07MB0903 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160222_073436_789383_1087E574 X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.8 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Russell King <rmk+kernel@arm.linux.org.uk>, linux-arm <linux-arm-kernel@lists.infradead.org> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/arch/arm/mm/pageattr.c b/arch/arm/mm/pageattr.c index be7fe4b..9edf6b0 100644 --- a/arch/arm/mm/pageattr.c +++ b/arch/arm/mm/pageattr.c @@ -49,6 +49,9 @@ static int change_memory_common(unsigned long addr, int numpages, WARN_ON_ONCE(1); } + if (!numpages) + return 0; + if (start < MODULES_VADDR || start >= MODULES_END) return -EINVAL;