linux-uconsole/drivers/input/touchscreen
Sanjeev Chugh f168056530 Input: atmel_mxt_ts - don't try to free unallocated kernel memory
commit 1e3c336ad8 upstream.

If the user attempts to update Atmel device with an invalid configuration
cfg file, error handling code is trying to free cfg file memory which is
not allocated yet hence results into kernel crash.

This patch fixes the order of memory free operations.

Signed-off-by: Sanjeev Chugh <sanjeev_chugh@mentor.com>
Fixes: a4891f1058 ("Input: atmel_mxt_ts - zero terminate config firmware file")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-09 17:38:41 +01:00
..
88pm860x-ts.c
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c
ar1021_i2c.c
atmel_mxt_ts.c Input: atmel_mxt_ts - don't try to free unallocated kernel memory 2019-01-09 17:38:41 +01:00
auo-pixcir-ts.c
bcm_iproc_tsc.c
bu21013_ts.c
bu21029_ts.c
chipone_icn8318.c
chipone_icn8505.c
colibri-vf50-ts.c
cy8ctmg110_ts.c
cyttsp4_core.c
cyttsp4_core.h
cyttsp4_i2c.c
cyttsp4_spi.c
cyttsp_core.c
cyttsp_core.h
cyttsp_i2c.c
cyttsp_i2c_common.c
cyttsp_spi.c
da9034-ts.c
da9052_tsi.c
dynapro.c
edt-ft5x06.c
eeti_ts.c
egalax_ts.c Input: egalax_ts - add system wakeup support 2018-09-18 15:28:07 -07:00
egalax_ts_serial.c
ektf2127.c
elants_i2c.c
elo.c
exc3000.c
fsl-imx25-tcq.c
fujitsu_ts.c
goodix.c
gunze.c
hampshire.c
hideep.c
hp680_ts_input.c
htcpen.c
ili210x.c
imx6ul_tsc.c
inexio.c
ipaq-micro-ts.c
jornada720_ts.c
Kconfig Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2018-08-18 16:48:07 -07:00
lpc32xx_ts.c
mainstone-wm97xx.c
Makefile Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2018-08-18 16:48:07 -07:00
max11801_ts.c
mc13783_ts.c
mcs5000_ts.c
melfas_mip4.c
migor_ts.c
mk712.c
mms114.c
mtouch.c
mxs-lradc-ts.c
of_touchscreen.c
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
raydium_i2c_ts.c
resistive-adc-touch.c
rohm_bu21023.c
s3c2410_ts.c
s6sy761.c
silead.c
sis_i2c.c
st1232.c
stmfts.c
stmpe-ts.c
sun4i-ts.c
sur40.c
surface3_spi.c
sx8654.c
ti_am335x_tsc.c
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
ts4800-ts.c
tsc40.c
tsc200x-core.c
tsc200x-core.h
tsc2004.c
tsc2005.c
tsc2007.h
tsc2007_core.c
tsc2007_iio.c
ucb1400_ts.c
usbtouchscreen.c
w90p910_ts.c
wacom_i2c.c
wacom_w8001.c
wdt87xx_i2c.c
wm97xx-core.c Input: wm97xx-ts - fix exit path 2018-11-21 09:19:08 +01:00
wm831x-ts.c
wm9705.c
wm9712.c
wm9713.c
zet6223.c
zforce_ts.c
zylonite-wm97xx.c