Re: [patch added to the 3.12 stable tree] gpio: sysfs: fix memory leaks and device hotplug

Johan Hovold
2015-05-15T20:24:06Z

On Fri, May 15, 2015 at 09:51:29PM +0200, Jiri Slaby wrote:
> On 05/15/2015, 04:51 PM, Johan Hovold wrote:
> > On Fri, May 15, 2015 at 04:28:24PM +0200, Jiri Slaby wrote:
> >> From: Johan Hovold <johan@kernel.org>
> >>
> >> This patch has been added to the 3.12 stable tree. If you have any
> >> objections, please let us know.
> >
> > This one depends on 01cca93a9491 ("gpio: unregister gpiochip device
> > before removing it") as indicated by the stable tag:
> >
> > Cc: stable <stable@vger.kernel.org> # v2.6.27: 01cca93a9491
>
> I am not sure what you mean. The commit contains:
> Fixes: d8f388d8dc8d ("gpio: sysfs interface")
> Cc: stable <stable@vger.kernel.org> # v2.6.27: 01cca93a9491
>
> d8f388d8dc8d is in 2.6.27
> 01cca93a9491 is in 3.19
>
> Since it is fixing something in 2.6.27, I should take it to 3.12, or am
> I missing something?

Yes, but the stable tag above means you need to backport 01cca93a9491
("gpio: unregister gpiochip device before removing it") as well.

Backports of both patches for 3.10 and 3.14 can be found in Greg's
stable queues (posted to stable list earlier today).

Johan