linux-imx/drivers/input/misc
Johan Hovold ed47b5c903 Input: cm109 - validate number of endpoints before using them
commit ac2ee9ba95 upstream.

Make sure to check the number of endpoints to avoid dereferencing a
NULL-pointer should a malicious device lack endpoints.

Fixes: c04148f915 ("Input: add driver for USB VoIP phones with CM109...")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2017-04-07 10:38:24 +02:00
..
88pm80x_onkey.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
88pm860x_onkey.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
ab8500-ponkey.c Input: ab8500-ponkey - remove redundant platform_set_drvdata() 2013-05-05 20:13:43 -07:00
ad714x-i2c.c Input: ad714x - add CONFIG_PM_SLEEP to suspend/resume functions 2013-03-26 22:09:55 -07:00
ad714x-spi.c Input: ad714x - add CONFIG_PM_SLEEP to suspend/resume functions 2013-03-26 22:09:55 -07:00
ad714x.c Input: request threaded-only IRQs with IRQF_ONESHOT 2012-07-04 13:12:19 -07:00
ad714x.h
adxl34x-i2c.c Input: adxl34x - add CONFIG_PM_SLEEP to suspend/resume functions 2013-03-26 22:09:51 -07:00
adxl34x-spi.c Input: adxl34x - use spi_get_drvdata() 2013-04-07 21:02:29 -07:00
adxl34x.c Input: adxl34x - default platform_data should not use defines from driver 2012-12-24 09:52:46 -08:00
adxl34x.h
apanel.c
arizona-haptics.c Input - arizona-haptics: Fix double lock of dapm_mutex 2014-03-05 17:13:54 +01:00
ati_remote2.c Input: ati_remote2 - fix crashes on detecting device with invalid descriptor 2016-04-11 16:44:25 +02:00
atlas_btns.c ACPI: Remove useless type argument of driver .remove() operation 2013-01-26 00:37:24 +01:00
bfin_rotary.c Input: bfin_rotary - remove redundant platform_set_drvdata() 2013-05-05 20:13:53 -07:00
bma150.c Input: bma150 - make some defines public and fix some comments 2013-02-15 18:52:45 -08:00
cm109.c Input: cm109 - validate number of endpoints before using them 2017-04-07 10:38:24 +02:00
cma3000_d0x_i2c.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
cma3000_d0x.c Fix comment typo multipy -> multiply 2012-06-03 12:04:08 +02:00
cma3000_d0x.h
cobalt_btns.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
da9052_onkey.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2012-12-18 12:46:37 -08:00
da9055_onkey.c treewide: relase -> release 2013-06-28 14:34:33 +02:00
dm355evm_keys.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
gp2ap002a00f.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
gpio_tilt_polled.c Input: gpio_tilt_polled - remove redundant platform_set_drvdata() 2013-05-05 20:14:03 -07:00
hp_sdc_rtc.c input: single_open() leak 2013-05-05 00:12:56 -04:00
ideapad_slidebar.c Input: add driver for slidebar on Lenovo IdeaPad laptops 2013-08-26 09:30:03 -07:00
ims-pcu.c Input: ims-pcu - validate number of endpoints before using them 2017-04-07 10:38:24 +02:00
ixp4xx-beeper.c Input: ixp4xx-beeper - remove redundant platform_set_drvdata() 2013-05-28 00:57:35 -07:00
Kconfig Input: add driver for slidebar on Lenovo IdeaPad laptops 2013-08-26 09:30:03 -07:00
keyspan_remote.c USB: input: keyspan_remote.c: fix up dev_* messages 2012-05-04 15:32:58 -07:00
kxtj9.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
m68kspkr.c Input: m68kspkr - remove redundant platform_set_drvdata() 2013-05-28 00:57:41 -07:00
Makefile Input: add driver for slidebar on Lenovo IdeaPad laptops 2013-08-26 09:30:03 -07:00
max8925_onkey.c Input: max8925_onkey - remove redundant platform_set_drvdata() 2013-05-05 20:14:06 -07:00
max8997_haptic.c Input: max8997-haptic - fix NULL pointer dereference 2016-05-16 16:29:24 +02:00
mc13783-pwrbutton.c Input: mc13783-pwrbutton - remove redundant platform_set_drvdata() 2013-05-05 20:14:10 -07:00
mma8450.c Input: mma8450 - fix signed 12bits to 32bits conversion 2013-03-31 00:48:10 -07:00
mpu3050.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
pcap_keys.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
pcf8574_keypad.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
pcf50633-input.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
pcspkr.c Input: pcspkr - remove redundant platform_set_drvdata() 2013-05-28 00:57:45 -07:00
pm8xxx-vibrator.c Input: pm8xxx-vibrator - remove redundant platform_set_drvdata() 2013-05-05 20:14:14 -07:00
pmic8xxx-pwrkey.c Input: pmic8xxx-pwrkey - pass correct pointer to free_irq() 2013-05-23 09:38:38 -07:00
powermate.c Input: powermate - fix oops with malicious USB descriptors 2016-04-11 16:44:09 +02:00
pwm-beeper.c Input: pwm-beeper - add CONFIG_PM_SLEEP to suspend/resume 2013-08-12 22:32:26 -07:00
rb532_button.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
retu-pwrbutton.c Input: remove use of __devexit 2012-11-24 00:05:38 -08:00
rotary_encoder.c Input: rotary_encoder - remove redundant platform_set_drvdata() 2013-05-05 20:14:25 -07:00
sgi_btns.c Input: misc - use platform_{get,set}_drvdata() 2013-05-23 09:34:13 -07:00
sirfsoc-onkey.c Input: sirfsoc-onkey - fix GPL v2 license string typo 2015-04-27 19:59:56 +02:00
sparcspkr.c Input: misc - use platform_{get,set}_drvdata() 2013-05-23 09:34:13 -07:00
twl4030-pwrbutton.c Input: twl4030-pwrbutton - ensure a wakeup event is recorded. 2015-04-27 19:59:56 +02:00
twl4030-vibra.c Input: twl4030-vibra - Use system workqueue 2013-01-21 17:31:08 -08:00
twl6040-vibra.c Input: twl6040-vibra - remove support for legacy (pdata) mode 2013-08-12 22:30:39 -07:00
uinput.c Input: uinput - handle compat ioctl for UI_SET_PHYS 2016-06-15 09:32:10 +02:00
wistron_btns.c Input: wistron_btns - add MODULE_DEVICE_TABLE 2013-08-13 09:52:17 -07:00
wm831x-on.c Input: wm831x-on - convert to devm_input_allocate_device() 2012-12-24 09:52:29 -08:00
xen-kbdfront.c xen/pvhvm: If xen_platform_pci=0 is set don't blow up (v4). 2014-02-13 13:50:10 -08:00
yealink.c Input: yealink - validate number of endpoints before using them 2017-04-07 10:38:24 +02:00
yealink.h