linux/drivers/staging/iio
Alison Schofield 10e840dfb0 iio: trigger: free trigger resource correctly
These stand-alone trigger drivers were using iio_trigger_put()
where they should have been using iio_trigger_free().  The
iio_trigger_put() adds a module_put which is bad since they
never did a module_get.

In the sysfs driver, module_get/put's are used as triggers are
added & removed. This extra module_put() occurs on an error path
in the probe routine (probably rare).

In the bfin-timer & interrupt trigger drivers, the module resources
are not explicitly managed, so it's doing a put on something that
was never get'd.  It occurs on the probe error path and on the
remove path (not so rare).

Tested with the sysfs trigger driver.
The bfin & interrupt drivers were build tested & inspected only.

Signed-off-by: Alison Schofield <amsfield22@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2017-01-22 16:14:21 +00:00
..
accel iio: adis16203: Fix copyright year 2016-12-03 08:56:29 +00:00
adc staging: iio: ad7606: replace range/range_available with corresponding scale 2017-01-07 12:56:05 -05:00
addac staging:iio:addac:adt7316 Fixes Alignment should match open parenthesis 2017-01-10 19:54:57 +00:00
cdc staging: iio: cdc: fix improper return value 2016-12-04 10:57:57 +00:00
Documentation staging: iio: tsl2583: move out of staging 2016-11-13 13:07:33 +00:00
frequency staging: iio: ad9832: allocate data before using 2016-11-08 20:22:32 +00:00
gyro spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
impedance-analyzer Staging: iio: impedance-analyzer: ad5933: fix wrong comments 2016-12-10 17:50:38 +00:00
light staging: iio: isl29028: add runtime power management support 2017-01-22 13:21:40 +00:00
meter iio:kfifo_buf header include push down. 2017-01-10 19:54:53 +00:00
resolver staging: iio: convert bare unsigned usage to unsigned int 2016-03-28 09:37:41 +01:00
trigger iio: trigger: free trigger resource correctly 2017-01-22 16:14:21 +00:00
Kconfig iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
Makefile iio: hmc5843: Move hmc5843 out of staging 2016-02-24 20:40:39 +00:00
TODO staging:iio:TODO drop outdated entries in this todo. 2016-10-23 19:33:40 +01:00