[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAL_JsqKfmzA6E0PEKA-69haaO163YrNhoF7+oauE5Xd3JDTKgw@mail.gmail.com>
Date: Mon, 7 Jan 2019 17:51:02 -0600
From: Rob Herring <robh@...nel.org>
To: Mathieu Malaterre <malat@...ian.org>
Cc: Bartlomiej Zolnierkiewicz <b.zolnierkie@...sung.com>,
Elimar Riesebieter <riesebie@...ec.de>,
LKML <linux-kernel@...r.kernel.org>,
"# v4 . 11" <stable@...r.kernel.org>,
dri-devel <dri-devel@...ts.freedesktop.org>,
Linux Fbdev development list <linux-fbdev@...r.kernel.org>
Subject: Re: [PATCH] fbdev: offb: Fix OF node name handling
On Mon, Jan 7, 2019 at 2:36 PM Mathieu Malaterre <malat@...ian.org> wrote:
>
> Hi Rob,
>
> On Mon, Jan 7, 2019 at 9:11 PM Mathieu Malaterre <malat@...ian.org> wrote:
> >
> > On Mon, Jan 7, 2019 at 6:31 PM Rob Herring <robh@...nel.org> 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@...ian.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 <malat@...ian.org>
>
> Just for curiosity, why would you keep:
>
> if (strcmp(dp->name, "valkyrie") == 0)
Mainly just because I already have another patch to do that which I
haven't sent out.
Rob
Powered by blists - more mailing lists