Messages in this thread | | | Date | Mon, 11 Feb 2013 15:31:45 +0100 | Subject | Re: [PATCH] gpiolib: Fix locking on gpio debugfs files | From | Linus Walleij <> |
| |
On Sat, Feb 9, 2013 at 11:34 AM, Grant Likely <grant.likely@secretlab.ca> wrote:
> The debugfs files really need to hold the gpiolib spinlock before > accessing the list. Otherwise chip addition/removal will cause an oops. > > Cc: Alexandre Courbot <acourbot@nvidia.com> > Cc: Linus Walleij <linus.walleij@linaro.org> > Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
> I've also got a draft patch that turns gpio chips into first-class > kobjects which means we can do proper reference counting on them and > prevent the structure from actually disappearing while other drivers > still hold references.
Thank you for doing this!
Yours, Linus Walleij
| |