linux-stable/drivers/staging
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
..
android Merge 4.9-rc3 into staging-next 2016-10-30 06:38:44 -04:00
board
clocking-wizard staging: clocking-wizard: Fix incorrect type of speed grade 2016-10-25 09:54:32 +02:00
comedi staging: comedi: ni_mio_common: remove variable 'dl' in ni_ai_insn_read() 2016-11-15 11:04:21 +01:00
dgnc staging: dgnc: remove sysfs files 2016-12-01 09:57:49 +01:00
emxx_udc staging: emxx_udc: emxx_udc.c Align parenthesis 2016-11-23 10:05:39 +01:00
fbtft staging: fbtft: Fix 'line over 80 characters' 2016-11-10 13:55:02 +01:00
fsl-mc Staging: fsl-mc: include: mc: Kernel type 'int' preferred over 's16' 2016-11-15 11:01:54 +01:00
fwserial Staging: fwserial: remove unused function fill_unplug_req 2016-10-16 10:25:09 +02:00
gdm724x staging: gdm724x: Remove one blank line in sequence 2016-11-29 21:57:15 +01:00
goldfish
greybus staging: Greybus: Remove unnecessary braces for single statement block 2016-11-19 14:23:09 +01:00
gs_fpgaboot Staging: gs_fpgaboot: Use octal permissions '0444' 2016-10-25 09:40:44 +02:00
i4l staging: i4l: pcbit: remove duplicated include from capi.c 2016-10-25 09:59:48 +02:00
iio iio: trigger: free trigger resource correctly 2017-01-22 16:14:21 +00:00
ks7010 Staging: ks7010: Fixed {} brace warnings for single statement blocks. 2016-11-29 21:57:14 +01:00
lustre staging: lustre: libcfs: repair improper unlikely test 2016-11-30 12:59:52 +01:00
media Merge 4.9-rc5 into staging-next 2016-11-14 08:53:56 +01:00
most staging: most: Eliminate usage of symbolic permissions 2016-11-29 21:57:14 +01:00
mt29f_spinand
netlogic Staging: netlogic: Compress return logic into one line 2016-10-16 10:27:33 +02:00
nvec staging: nvec: remove managed resource from PS2 driver 2016-11-07 11:48:25 +01:00
octeon
octeon-usb
olpc_dcon
rtl8188eu Staging: rtl8188eu: Fix code indention found by checkpatch. 2016-10-30 11:09:03 -04:00
rtl8192e staging: rtl8192e: Added new line after declaration 2016-11-15 11:01:54 +01:00
rtl8192u staging: rtl8192u: Standardize test for NULL. 2016-10-30 11:09:03 -04:00
rtl8712 Staging: rtl8712: rtl871x_*: Removed unnecessary else statements after a break or return 2016-11-21 11:25:41 +01:00
rts5208 staging: rts5208: rtsx.c: Fix invalid use of sizeof in rtsx_probe() 2016-10-25 09:59:48 +02:00
skein staging: skein: threefish_block.c Remove blank lines 2016-11-21 11:10:56 +01:00
slicoss staging: slicoss: remove UPDATE_STATS_GB macro and inline code 2016-11-29 21:57:14 +01:00
sm750fb staging: sm750fb: fix tabstop style warning 2016-11-30 12:59:53 +01:00
speakup staging: speakup: speakup_soft.c Align parenthesis 2016-11-23 10:07:32 +01:00
unisys staging: unisys: visorbus: Remove two passthrough postcode macros 2016-12-01 09:58:48 +01:00
vc04_services staging: vc04_services: add HAS_DMA dependancy 2016-11-17 09:39:59 +01:00
vme staging: vme: vme_user.c Spelling corrections 2016-11-19 14:21:58 +01:00
vt6655 staging: vt6655: Fixed coding style warnings on Block comments 2016-11-21 11:13:14 +01:00
vt6656 staging: vt6656: Fix coding style warnings on Block comments 2016-11-21 11:13:14 +01:00
wilc1000 staging: wilc1000: simplify vif[i]->ndev accesses 2016-11-16 18:30:22 +01:00
wlan-ng Staging: wlan-ng: prism2mgmt: Fixed operators spacing style issues 2016-11-19 14:21:58 +01:00
xgifb staging: xgifb: XGI_main.h Align data columns 2016-11-19 14:17:51 +01:00
Kconfig
Makefile staging: vc04_services: use bcm2835 consequently 2016-10-27 15:23:54 +02:00