aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2015-05-04 17:10:35 +0200
committerLinus Walleij <[email protected]>2015-05-12 10:47:03 +0200
commit54d9acd7540995b06a47974e3d06da7f68df9d4a (patch)
tree9d86f162d0488d13b5bca406e8f070e47802bb4d /tools/perf/scripts/python/sched-migration.py
parent6beac9d1aa9bf104b01816852131fa175c0a178b (diff)
gpio: sysfs: release irq after class-device deregistration
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 <[email protected]> Reviewed-by: Alexandre Courbot <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions