Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972AbdHGOz5 (ORCPT ); Mon, 7 Aug 2017 10:55:57 -0400 Received: from g9t5008.houston.hpe.com ([15.241.48.72]:45210 "EHLO g9t5008.houston.hpe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbdHGOzv (ORCPT ); Mon, 7 Aug 2017 10:55:51 -0400 From: "Kani, Toshimitsu" To: "bp@alien8.de" CC: "linux-acpi@vger.kernel.org" , "lenb@kernel.org" , "mchehab@kernel.org" , "tony.luck@intel.com" , "linux-kernel@vger.kernel.org" , "linux-edac@vger.kernel.org" , "rjw@rjwysocki.net" Subject: Re: [PATCH v2 6/7] EDAC: add edac_check_mc_owner() to check MC owner Thread-Topic: [PATCH v2 6/7] EDAC: add edac_check_mc_owner() to check MC owner Thread-Index: AQHTDKTtKmj3ue76BkSL9ZHZV2c/aqJz3neAgADYpgCAAIuCgIADu+oA Date: Mon, 7 Aug 2017 14:55:48 +0000 Message-ID: <1502117172.2042.129.camel@hpe.com> References: <20170803215753.30553-1-toshi.kani@hpe.com> <20170803215753.30553-7-toshi.kani@hpe.com> <20170804083007.GA15617@nazgul.tnic> <1501881932.2042.121.camel@hpe.com> <20170805054451.GE23214@nazgul.tnic> In-Reply-To: <20170805054451.GE23214@nazgul.tnic> 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.8] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DF4PR84MB0188;6:GyRp18IuymOwLS/IoGU06pEyRFbdFKJwL9Ncp7miYrQo/+ySiS/WBVfG08sOS0a4hSWtEDy7WVpGcCF8KtnkcuEauC/OwhXI9UniAO0C9JHrqYQgc/18BpsoixngfYM0aitVwSGA1XoN1dxSdVXred2FdJjbKWNQZHQEbJMZwtIxaeQ0TS6fJNosdGJypAziI20eqV6O2KDeMfdXisGKiccQFytJfAhyCBxSX05rxqAE4iMMf0GtbPlA7qslKhMNrnxYImGN/aPWYRTMz+THNvyPXPgr0Qju6rM+9XwBCjjT6dH825e/AT+zFEH5BHp3JqCw3QFM4OD1iA/E0g+TPQ==;5:+33Hre/qVY8Na5+qrePUrdQgyysEUZ19sotU/0iwWaKkt0jRgec/vpnEKJREr1ENJpEdlelYwx5/Bsvs+xwHYHkFI+L4x2EJ3MRuc43FPp5kmml4PLocZSj0mw0vI+wmmZm/T4PpCEFd4XUVtOK/ug==;24:9Qjz3VQf5H6w8m5M6RE59cEkRyrCgr1JrVI9PQTz23MubZHo5APjCHSXhTr1hn9ifJYY7c5h15G5Z84OFDlZ/+dGAL1b7h4XMxmMgHX6LXE=;7:dU5zT3CPReftBdEZy1ZvVt7x36cdeQBSPx7tz4D2gNzHrXMJpua5f0FvfOaSk86fTpyMit9GryiPmbIhvZcOZAARZQoWrXk81v2vnoD6iRYFi3N+6HggYBsq/tww5YKSlHG4Y15AoSUmRXVK7Ae+lZg4y8zduW1yqC7WK7ffEnJ4mp0fxYy9s/4yn/7QmPGdqYNjadlu6SWzBRGWl7VDJqdNA9EzSA3gY7kS9tCvg9o= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: 954182eb-4c71-40d6-db6a-08d4dda463f6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:DF4PR84MB0188; x-ms-traffictypediagnostic: DF4PR84MB0188: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6041248)(20161123564025)(20161123555025)(20161123560025)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DF4PR84MB0188;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DF4PR84MB0188; x-forefront-prvs: 0392679D18 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39850400002)(39410400002)(39860400002)(39400400002)(39840400002)(39450400003)(24454002)(377424004)(199003)(189002)(68736007)(5660300001)(54906002)(50986999)(101416001)(5640700003)(76176999)(54356999)(2501003)(25786009)(4326008)(66066001)(6436002)(2900100001)(229853002)(6486002)(189998001)(36756003)(97736004)(6506006)(106356001)(3846002)(102836003)(6116002)(110136004)(6246003)(105586002)(6512007)(77096006)(38730400002)(2351001)(53936002)(8676002)(1730700003)(81166006)(81156014)(103116003)(6916009)(33646002)(2950100002)(7736002)(305945005)(86362001)(93886004)(14454004)(3280700002)(8936002)(2906002)(3660700001)(478600001);DIR:OUT;SFP:1102;SCL:1;SRVR:DF4PR84MB0188;H:DF4PR84MB0187.NAMPRD84.PROD.OUTLOOK.COM;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2017 14:55:48.7111 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-Transport-CrossTenantHeadersStamped: DF4PR84MB0188 X-OriginatorOrg: hpe.com 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 nfs id v77Eu2RK013906 Content-Length: 505 Lines: 20 On Sat, 2017-08-05 at 07:44 +0200, Borislav Petkov wrote: > On Fri, Aug 04, 2017 at 09:35:05PM +0000, Kani, Toshimitsu wrote: > > 1 means the caller's init function can continue its initialization > > -- > > such conditions are free or owned by itself. > > Make that: > > edac_get_owner(void) > > to return the owner string or NULL if there's no owner. > > The caller can then do the string checking and do strncmp() to limit > the string length being checked. Good idea! Will do. Thanks, -Toshi