From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754384AbcHXPjS (ORCPT ); Wed, 24 Aug 2016 11:39:18 -0400 Received: from mail-sn1nam02on0095.outbound.protection.outlook.com ([104.47.36.95]:41769 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752094AbcHXPjP (ORCPT ); Wed, 24 Aug 2016 11:39:15 -0400 From: "Kani, Toshimitsu" To: "dan.j.williams@intel.com" CC: "Mulumudi, Abhilash Kumar" , "linux-nvdimm@lists.01.org" , "ard.biesheuvel@linaro.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "brian.starkey@arm.com" Subject: Re: [PATCH] memremap: Fix NULL pointer BUG in get_zone_device_page() Thread-Topic: [PATCH] memremap: Fix NULL pointer BUG in get_zone_device_page() Thread-Index: AQHR/W5ZePHh0bI7qkGTM3px2vEum6BXIayAgAAUw4CAAA1fgIAADk3AgAAYaQCAABIWAIAAHuUAgACf7IA= Date: Wed, 24 Aug 2016 15:21:46 +0000 Message-ID: <1472052069.1532.13.camel@hpe.com> References: <1471977800-12688-1-git-send-email-toshi.kani@hpe.com> <1471996023.1532.6.camel@hpe.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=toshi.kani@hpe.com; x-originating-ip: [15.219.163.2] x-ms-office365-filtering-correlation-id: 5560cfcc-2c5d-43a0-fea9-08d3cc325d14 x-microsoft-exchange-diagnostics: 1;CS1PR84MB0006;6:66q3rrlQHJ3z4v0s+4GE+As1gGNLzl+t4hvI+NtG3QfEe85jieg+bi1Bp8xstVd0pevPKGzA9SBM+MNj4xYvydtVOzTGDCvq+C4xS9kI3vVwLbbt+MpYRIC8Hc2FFJPi5AUUVZKFSaWAfYRD3jU2zey6TwWLC4db2z+8D6CWISGWbbLYz+YJhmr9JDfLHEIIoOe8O3VQecU6i2oTo3lzaQnw4smyUiQo1AsHU/vGKnYESgU0Pfq0kbwP9sXfjGll6OnxxP3VHPy7tqcE86lAaXuhArlZd32o1nWT2gY9i8MKx8RWKWiO0i7OuEc3HI9b1bKsbKIyzwxDYWPThMrvIQ==;5:GL6FvqkhATA8KBA1n4URptdKYhTBll8h0byCOwJkMTDMoNg5hbYyqIkB3NEGGDKOduiaZ1oWvbCL0fUNIR5GwVwZXoIgl59P221XLeJpXKwZ4JHcRhSnZZkgsnbKDfu6c22jsII19l6rdxHEkbPKug==;24:W6tqGm7aglnTgAKSqr+24jktpaKn4/L9GvxjG49VTL7udA/Ts+IFxhsv+UkPiW8GEqz/M7ESREIcnUShPrtOX88s3SfGjRmQdOezHLGDB8o=;7:1fb1Gjw6BmvmDHlbLld2y+YnpTWxcRttZ2Uz6bgQtEgpKBa0cNx+/9Nnth9hPH91JRHapmKzRuvSZJE6LVi6sW1/tVfBsg33mXyNk06NGahhv4vqsb0/4m1dzxlR2uJQeyRGojB0n/dXTXh4YffgIdfcB5XKfK322gOSCRYiaGR7dpgD9ooyQvOWu/Zi9i/97lJVe8AWKIdKsTMbUt3x3jKDK17Zh/eFUbzFQeSagZUPVr3p4QUPnLt5weBpXS9T x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0006; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(227479698468861); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026);SRVR:CS1PR84MB0006;BCL:0;PCL:0;RULEID:;SRVR:CS1PR84MB0006; x-forefront-prvs: 0044C17179 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(7916002)(189002)(199003)(377454003)(51914003)(24454002)(377424004)(2906002)(54356999)(305945005)(97736004)(586003)(76176999)(7846002)(81156014)(50986999)(106356001)(7736002)(8936002)(3660700001)(99286002)(105586002)(6116002)(10400500002)(8676002)(81166006)(4326007)(102836003)(3846002)(2351001)(3280700002)(189998001)(2501003)(19580405001)(5890100001)(5640700001)(103116003)(106116001)(122556002)(93886004)(92566002)(5002640100001)(110136002)(68736007)(86362001)(5660300001)(87936001)(77096005)(66066001)(2950100001)(36756003)(2900100001)(33646002)(101416001)(19580395003);DIR:OUT;SFP:1102;SCL:1;SRVR:CS1PR84MB0006;H:CS1PR84MB0005.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: hpe.com X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Aug 2016 15:21:46.9798 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR84MB0006 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by mail.home.local id u7OFdXti031553 On Tue, 2016-08-23 at 22:48 -0700, Dan Williams wrote: > On Tue, Aug 23, 2016 at 8:58 PM, Dan Williams > > > > Does the attached patch fix this for you? > > Sorry, should be this much simpler patch that also mirrors what > driver/nvdimm/pmem.c is doing... Yes, this change works fine. :-) Tested-by: Toshi Kani Thanks for the quick fix! -Toshi