[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5f51eb6be411ae9afb08a9b315fe51e754dc0077.camel@collabora.com>
Date: Tue, 21 May 2019 15:39:00 -0300
From: Ezequiel Garcia <ezequiel@...labora.com>
To: Boris Brezillon <boris.brezillon@...labora.com>,
Helen Koike <helen.koike@...labora.com>
Cc: linux-media@...r.kernel.org, hverkuil-cisco@...all.nl,
kernel@...labora.com, ezequiel.garcia@...labora.com,
andrealmeid@...labora.com,
Mauro Carvalho Chehab <mchehab@...nel.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] media: vimc: fix component match compare
On Tue, 2019-05-21 at 14:55 +0200, Boris Brezillon wrote:
> On Fri, 17 May 2019 14:20:11 -0300
> Helen Koike <helen.koike@...labora.com> wrote:
>
> > If the system has other devices being registered in the component
> > framework, the compare function will be called with a device that
> > doesn't belong to vimc.
> > This device is not necessarily a platform_device, nor have a
> > platform_data (which causes a NULL pointer dereference error) and if it
> > does have a pdata, it is not necessarily type of struct vimc_platform_data.
> > So casting to any of these types is wrong.
> >
> > Instead of expecting a given pdev with a given pdata, just expect for
> > the device it self. vimc-core is the one who creates them, we know in
> > advance exactly which object to expect in the match.
> >
> > Fixes: 4a29b7090749 ("[media] vimc: Subdevices as modules")
>
> Oh, and you forgot to add
>
> Cc: <stable@...r.kernel.org>
>
Although it's not really documented (not in process/stable-rules
at least) that a "Fixes" tag alone would be automatically picked by
the stable team, it has been the case for me since always,
as I've never Cced stable explicitly.
Powered by blists - more mailing lists