linux/drivers/staging/iio
Ben Hutchings e0ab903d9f iio: iio-trig-periodic-rtc: Free trigger resource correctly
This is based on upstream commit 10e840dfb0, which did not touch the
iio-trig-periodic-rtc driver because it has been removed upstream.

The following explanation comes from that commit:

    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.

This was build tested only.

Cc: Alison Schofield <amsfield22@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2018-11-20 18:06:01 +00:00
..
accel staging: iio: accel: fix error check 2016-08-22 22:38:21 +01:00
adc staging: iio: adc: ad7192: fix external frequency setting 2018-06-16 22:22:02 +01:00
addac First round of IIO new driver, functionality and cleanups for the 3.16 cycle. 2014-04-26 08:12:25 -07:00
cdc staging: iio: Fix typo in iio 2014-04-23 21:44:41 +01:00
Documentation fix format string missmatch in staging/iio/Documentation/iio_utils.h 2014-05-25 12:09:37 +01:00
frequency staging:iio:ad9834: Mark transfer buffers as __b16 2013-12-03 20:22:29 +00:00
gyro staging: iio: adis16060: Use devm_iio_device_register 2013-11-24 21:07:21 +00:00
impedance-analyzer staging: iio: ad5933: avoid uninitialized variable in error case 2017-02-23 03:54:21 +00:00
light staging: iio: tsl2x7x_core: Fix standard deviation calculation 2017-08-26 02:14:26 +01:00
magnetometer 2nd round of new IIO drivers, features and cleanups for the 3.14 cycle. 2013-12-24 10:30:57 -08:00
meter staging:iio:ade7854: Fix the wrong number of bits to read 2018-11-20 18:04:47 +00:00
resolver staging:iio:resolver:ad2s1210 fix negative IIO_ANGL_VEL read 2017-11-11 13:32:54 +00:00
trigger iio: iio-trig-periodic-rtc: Free trigger resource correctly 2018-11-20 18:06:01 +00:00
iio_dummy_evgen.c staging:iio: Don't compare boolean values with true/false 2012-10-19 16:19:45 +01:00
iio_dummy_evgen.h staging:iio:dummy Add event support + fake event generator 2011-10-17 15:36:30 -07:00
iio_simple_dummy.c iio: Remove support for the legacy event config interface 2013-12-08 13:13:52 +00:00
iio_simple_dummy.h staging:iio:simple_dummy: Switch to new event config interface 2013-10-12 12:48:39 +01:00
iio_simple_dummy_buffer.c staging:iio:simple-dummy: Remove redundant call to iio_sw_buffer_preenable() 2013-10-16 19:15:40 +01:00
iio_simple_dummy_events.c staging:iio:simple_dummy: Switch to new event config interface 2013-10-12 12:48:39 +01:00
Kconfig staging/iio: IIO_SIMPLE_DUMMY_BUFFER neds IIO_BUFFER 2014-06-07 11:45:21 +01:00
Makefile hwmon: Move the IIO client driver for hwmon out of staging 2013-03-23 10:08:15 +00:00
ring_hw.h staging:iio: Update email address for Jonathan Cameron. 2012-09-03 20:26:46 +01:00
TODO Staging/iio: add TODO reminder 2013-10-01 16:19:17 +01:00