linux/drivers/media/radio
Lee Jones 0bf57f087e media: si470x-i2c: Move free() past last use of 'radio'
A pointer to 'struct si470x_device' is currently used after free:

  drivers/media/radio/si470x/radio-si470x-i2c.c:462:25-30: ERROR: reference
    preceded by free on line 460

Shift the call to free() down past its final use.

NB: Not sending to Mainline, since the problem does not exist there, it was
caused by the backport of 2df200ab23 ("media: si470x-i2c: add missed
operations in remove") to the stable trees.

Cc: <stable@vger.kernel.org> # v3.18+
Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-02-05 14:43:40 +00:00
..
si470x media: si470x-i2c: Move free() past last use of 'radio' 2020-02-05 14:43:40 +00:00
si4713 media: si4713: don't check number of messages in the driver 2018-07-27 06:39:57 -04:00
wl128x media: wl128x: Fix an error code in fm_download_firmware() 2020-01-27 14:50:33 +01:00
dsbr100.c
Kconfig media: v4l: fix broken video4linux docs locations 2018-06-15 18:10:01 -03:00
lm7000.h
Makefile
radio-aimslab.c
radio-aztech.c
radio-cadet.c
radio-gemtek.c
radio-isa.c
radio-isa.h
radio-keene.c
radio-ma901.c
radio-maxiradio.c
radio-miropcm20.c
radio-mr800.c
radio-raremono.c media: radio-raremono: change devm_k*alloc to k*alloc 2019-08-04 09:30:54 +02:00
radio-rtrack2.c
radio-sf16fmi.c
radio-sf16fmr2.c
radio-shark.c
radio-shark2.c
radio-si476x.c
radio-tea5764.c
radio-tea5777.c
radio-tea5777.h
radio-terratec.c
radio-timb.c
radio-trust.c
radio-typhoon.c
radio-wl1273.c media: radio: wl1273: fix interrupt masking on release 2019-12-17 20:34:59 +01:00
radio-zoltrix.c
saa7706h.c
tea575x.c
tef6862.c