diff options
author | 2015-01-13 13:00:05 +0100 | |
---|---|---|
committer | 2015-01-15 17:20:15 +0100 | |
commit | 0915e6feb38de8d3601819992a5bd050201a56fa (patch) | |
tree | 246c1724e7a827583fa70147869b4bcbb15b883c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpio: sysfs: fix gpio-chip device-attribute leak (diff) | |
download | linux-dev-0915e6feb38de8d3601819992a5bd050201a56fa.tar.xz linux-dev-0915e6feb38de8d3601819992a5bd050201a56fa.zip |
gpio: sysfs: fix gpio device-attribute leak
The gpio device attributes were never destroyed when the gpio was
unexported (or on export failures).
Use device_create_with_groups() to create the default device attributes
of the gpio class device. Note that this also fixes the
attribute-creation race with userspace for these attributes.
Remove contingent attributes in export error path and on unexport.
Fixes: d8f388d8dc8d ("gpio: sysfs interface")
Cc: stable <stable@vger.kernel.org> # v2.6.27+
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions