lkml.org 
[lkml]   [2015]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH v2 10/23] gpio: sysfs: release irq after class-device deregistration
    From
    On Mon, May 4, 2015 at 5:10 PM, Johan Hovold <johan@kernel.org> wrote:

    > Make sure to release any irq only after the class device has been
    > deregistered.
    >
    > This avoids a race between gpiod_unexport and edge_store, where an irq
    > could be allocated just before the gpio class device is deregistered
    > without relying on FLAG_EXPORT and the global sysfs lock.
    >
    > Note that there is no need to hold the sysfs lock when releasing the irq
    > after the class device is gone as kernfs will prevent further attribute
    > operations.
    >
    > Signed-off-by: Johan Hovold <johan@kernel.org>

    Patch applied.

    Yours,
    Linus Walleij


    \
     
     \ /
      Last update: 2015-05-12 10:41    [W:4.193 / U:0.084 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site