Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp620696imu; Fri, 11 Jan 2019 06:19:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN7CErG1MbTA3N+gnvrpGpB7WFV639R2xEMOrggXn/jUCgpEj0JXiS2MqirdrlmSUhjb6Kf4 X-Received: by 2002:a17:902:ba8b:: with SMTP id k11mr14780059pls.177.1547216394785; Fri, 11 Jan 2019 06:19:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547216394; cv=none; d=google.com; s=arc-20160816; b=THr0yon4jG6cGdGqv1vTxwyeUYlvtBorQJ0C7DEaoCfCFSQgukhwswyKAedTAWWxHq X+i50Qz9GRHYNgmlzw2Mr5Rmj9KlU1VI0h8a4rsbrcH2xJUEUplaU3u6ubKSeGoOyPmQ r4o+lM+yV8NHURKgf8KV7N9i3/WKmquz13a7lRrrQCjQTSDxqZ/91pXe9a5fOORwslFM cfpiuOuqIdyIYJ+vLPPZ4TyRbOWJ4t0A5el+mmNqhpw+hOR6+i31YRTyxm+0MONkljog 1+Tc33vKJooTbZF+H3K7gRgpHri67l5OyJ6tYGCcPBfJbZuEb393wgdnlvA5qIeSmnIB YWhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=89w4z185cKSpKoEuON8iIMsFITImEqT/iU3vDRDgzLI=; b=vDI75VDLJ+hR4k9phFgb0rcQLTXPQm7yfRc7JmQbnQkC55vYFCadUUaZMZTLRe/GbU WiOjKan4lOUSw+ACAaopIBZTJa44n3OeyjsKSPFMYLuzvypdlk/LHUCCHhwUcm0ikbOZ xeXpb1xginMlt9boBVtnajEuCVdGyHX2dV79tctq1xlozsxXifXTu/1dujZqgBls3tdD 851WFL6nzx34JvunrJPPd4p5v9AtI6B/UMKWJq5AMMhm/V3bRru7Ug4JUcTBxC1P7XxQ Egkf+yiywLlUXDatrajfGzErNZ5M2eqvhpGhqbweHMKUXMp+ZDn5cUpyWzTNWhq0TM+c dmBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=afmvxOt8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w15si5573599plk.357.2019.01.11.06.19.38; Fri, 11 Jan 2019 06:19:54 -0800 (PST) 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=@samsung.com header.s=mail20170921 header.b=afmvxOt8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732489AbfAKMxo (ORCPT + 99 others); Fri, 11 Jan 2019 07:53:44 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:46338 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731592AbfAKMxo (ORCPT ); Fri, 11 Jan 2019 07:53:44 -0500 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190111125342euoutp0278949535fa43dca7497d7876c4ae7773~4zGjdVTgP1765017650euoutp02B for ; Fri, 11 Jan 2019 12:53:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190111125342euoutp0278949535fa43dca7497d7876c4ae7773~4zGjdVTgP1765017650euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1547211222; bh=89w4z185cKSpKoEuON8iIMsFITImEqT/iU3vDRDgzLI=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=afmvxOt8LYbU1jzhExPNtIas9xG/BJgY3FbFB+iBC6TPjb1PcJBsaMcMO00tTtRlr bedwb+g7gt1vuEAB2FwQj3IBR2ZE10G56Oh5KhNtL4lyQ0S7z51eGkPpgNaZD1DlSE 2Ygsjmwl0ZO5CmI35g6g6zM65lLGdA/soT24DDNQ= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190111125341eucas1p28346b77c409e8eb4c33efef616475279~4zGir3FeZ0303203032eucas1p29; Fri, 11 Jan 2019 12:53:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 27.C1.04441.5D1983C5; Fri, 11 Jan 2019 12:53:41 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190111125341eucas1p22005c473fcb349fcd7d11fc74230534f~4zGh3iuga0321003210eucas1p20; Fri, 11 Jan 2019 12:53:41 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190111125340eusmtrp1d651706311c6b3f414ba6faa161686a6~4zGhpCV-p1325913259eusmtrp1I; Fri, 11 Jan 2019 12:53:40 +0000 (GMT) X-AuditID: cbfec7f2-5c9ff70000001159-d5-5c3891d537e4 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id DD.82.04284.4D1983C5; Fri, 11 Jan 2019 12:53:40 +0000 (GMT) Received: from [106.120.53.102] (unknown [106.120.53.102]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20190111125340eusmtip2f32139c5cd66da9eae76b6ef93e323c8~4zGhSKCar0320903209eusmtip2C; Fri, 11 Jan 2019 12:53:40 +0000 (GMT) Subject: Re: [PATCH] fbdev: offb: Fix OF node name handling To: Mathieu Malaterre , Rob Herring Cc: Elimar Riesebieter , LKML , "# v4 . 11" , dri-devel , Linux Fbdev development list From: Bartlomiej Zolnierkiewicz Message-ID: Date: Fri, 11 Jan 2019 13:53:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRmVeSWpSXmKPExsWy7djP87pXJ1rEGExep2Fx5et7NosTfR9Y LS7vmsNmcXbTWxaLzk9LWCz+79nBbrFg4yNGB3aPX21zmT02repk87jffZzJo+XBVnaPz5vk AlijuGxSUnMyy1KL9O0SuDJ+z7zJVvCNs+L50kfMDYxNHF2MnBwSAiYS77Z2s3cxcnEICaxg lPj3axIzhPOFUaJn4kGozGdGiUn/J7J0MXKAtezZIQgRX84ocX7OSyYI5z2jxKnHr1hB5goL WEsc/XudGaRBRMBd4uRMCZAaZoEnjBK9/xexgNSwCVhJTGxfxQhi8wrYSayf3QrWyyKgKtF4 fikjSK+oQIRE/xl1iBJBoDFPwFo5BQIlfu/fyQRiMwvIS2x/OwfsagmBRewSb2fdZoM41EVi wj8jiDeFJV4d38IOYctInJ7cwwJRP51R4s2vpVDOekaJNWeOMUFUWUscPn6RFWQQs4CmxPpd +hBhR4nNW78wQcznk7jxVhDiBj6JSdumM0OEeSU62oQgqtUkNizbwAaztmvnSqgSD4mZt9Um MCrOQvLYLCTPzEJYu4CReRWjeGppcW56arFhXmq5XnFibnFpXrpecn7uJkZgmjn97/inHYxf LyUdYhTgYFTi4e3wNY8RYk0sK67MPcQowcGsJMJ7Os8iRog3JbGyKrUoP76oNCe1+BCjNAeL k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47BR5WMe3V4mlOCPRUIu5qDgRAC8+ lr62AgAA X-CMS-MailID: 20190111125341eucas1p22005c473fcb349fcd7d11fc74230534f X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190107201154epcas5p4e94984fb6be9a3263e97c79d362048a5 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190107201154epcas5p4e94984fb6be9a3263e97c79d362048a5 References: <20190107173132.27316-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/07/2019 09:11 PM, Mathieu Malaterre wrote: > On Mon, Jan 7, 2019 at 6:31 PM Rob Herring wrote: >> >> Commit 5c63e407aaab ("fbdev: Convert to using %pOFn instead of >> device_node.name") changed how the OF FB driver handles the OF node >> name. This missed the case where the node name is passed to >> offb_init_palette_hacks(). This results in a NULL ptr dereference >> in strncmp and breaks any system except ones using bootx with no display >> node. >> >> Fix this by making offb_init_palette_hacks() use the OF node pointer and >> use of_node_name_prefix() helper function instead for node name >> comparisons. This helps in moving all OF node name accesses to helper >> functions in preparation to remove struct device_node.name pointer. >> >> Fixes: 5c63e407aaab ("fbdev: Convert to using %pOFn instead of device_node.name") > > Looks good to me: > > ... > [ 0.000000] Linux version 5.0.0-rc1+ (malat@debian.org) (gcc > version 6.3.0 20170516 (Debian 6.3.0-18)) #21 Mon Jan 7 21:03:53 CET > 2019 > ... > > So here is my : > > Tested-by: Mathieu Malaterre Patch queued for 5.0, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics