linux/drivers
José Expósito 0a94131d69 HID: hid-uclogic-params: Invalid parameter check in uclogic_params_get_str_desc
The function performs a check on the hdev input parameters, however, it
is used before the check.

Initialize the udev variable after the sanity check to avoid a
possible NULL pointer dereference.

Fixes: 9614219e93 ("HID: uclogic: Extract tablet parameter discovery into a module")
Addresses-Coverity-ID: 1443827 ("Null pointer dereference")
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2022-01-06 15:39:43 +01:00
..
accessibility
acpi ACPI updates for 5.16-rc1 2021-11-02 15:58:39 -07:00
amba ARM: 9119/1: amba: Properly handle device probe without IRQ domain 2021-10-19 10:30:53 +01:00
android Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
ata libata changes for 5.16 2021-11-02 10:45:34 -07:00
atm
auxdisplay
base Driver core changes for 5.16-rc1 2021-11-04 08:32:38 -07:00
bcma
block vhost,virtio,vhost: fixes,features 2021-11-03 15:00:39 -07:00
bluetooth TTY / Serial driver update for 5.16-rc1 2021-11-04 09:09:37 -07:00
bus ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
cdrom for-5.16/cdrom-2021-10-29 2021-11-01 10:09:14 -07:00
char Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
clk The usual collection of clk driver updates and new driver additions. In 2021-11-03 21:18:44 -07:00
clocksource ARM: 2021-11-02 11:24:14 -07:00
comedi comedi: dt9812: fix DMA buffers on stack 2021-10-30 10:54:47 +02:00
connector
counter counter: Fix use-after-free race condition for events_queue_size write 2021-10-21 13:02:47 +02:00
cpufreq Merge branches 'pm-em' and 'powercap' 2021-11-02 19:31:28 +01:00
cpuidle ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2021-11-01 21:24:02 -07:00
cxl
dax
dca
devfreq PM / devfreq: Strengthen check for freq_table 2021-10-27 14:22:12 +09:00
dio
dma dmaengine: pxa_dma: Prefer struct_size over open coded arithmetic 2021-10-20 18:35:22 -05:00
dma-buf Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
edac - amd64_edac: Add support for three-rank interleaving mode which is 2021-11-01 15:02:49 -07:00
eisa
extcon extcon: usbc-tusb320: Add support for TUSB320L 2021-10-27 14:13:39 +09:00
firewire Core: 2021-11-02 06:20:58 -07:00
firmware ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
fpga
fsi fsi: sbefifo: Use interruptible mutex locking 2021-10-22 09:54:33 +10:30
gnss
gpio Pin control changes for the v5.16 kernel cycle 2021-11-05 08:24:17 -07:00
gpu Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
greybus
hid HID: hid-uclogic-params: Invalid parameter check in uclogic_params_get_str_desc 2022-01-06 15:39:43 +01:00
hsi HSI changes for the 5.16 series 2021-11-04 13:56:55 -07:00
hv hyperv-next for 5.16 2021-11-02 10:56:49 -07:00
hwmon Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
hwspinlock
hwtracing coresight: trbe: Work around write to out of range 2021-10-27 11:46:01 -06:00
i2c Driver core changes for 5.16-rc1 2021-11-04 08:32:38 -07:00
i3c
idle
iio iio: frequency: adrf6780: Fix adrf6780_spi_{read,write}() 2021-10-24 13:14:26 +02:00
infiniband Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
input Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid 2021-11-05 08:31:51 -07:00
interconnect
iommu IOMMU Updates for Linux v5.16: 2021-11-04 11:11:24 -07:00
ipack
irqchip Merge branch irq/irq_cpu_offline into irq/irqchip-next 2021-10-28 13:34:57 +01:00
isdn mISDN: Fix return values of the probe function 2021-10-19 13:09:28 +01:00
leds
macintosh
mailbox mailbox: imx: support i.MX8ULP S4 MU 2021-10-29 23:03:09 -05:00
mcb
md for-5.16/passthrough-flag-2021-10-29 2021-11-01 10:12:44 -07:00
media Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
memory Memory controller drivers for v5.16, part two 2021-10-21 21:34:21 +02:00
memstick memstick: r592: Fix a UAF bug when removing the driver 2021-10-19 13:04:42 +02:00
message mpt fusion: use dev_addr_set() 2021-10-28 12:47:49 +01:00
mfd
misc Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
mmc MMC core: 2021-11-01 18:55:12 -07:00
most most: fix control-message timeouts 2021-10-26 19:12:01 +02:00
mtd mtd: add add_disk() error handling 2021-10-21 09:00:56 -06:00
mux mux: add support for delay after muxing 2021-10-21 20:02:42 +01:00
net TTY / Serial driver update for 5.16-rc1 2021-11-04 09:09:37 -07:00
nfc Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-28 10:43:58 -07:00
ntb
nubus
nvdimm for-5.16/block-2021-10-29 2021-11-01 09:19:50 -07:00
nvme for-5.16/ki_complete-2021-10-29 2021-11-01 10:17:11 -07:00
nvmem
of ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
opp
parisc
parport
pci Driver core changes for 5.16-rc1 2021-11-04 08:32:38 -07:00
pcmcia Core: 2021-11-02 06:20:58 -07:00
perf ACPI updates for 5.16-rc1 2021-11-02 15:58:39 -07:00
phy Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
pinctrl Pin control changes for the v5.16 kernel cycle 2021-11-05 08:24:17 -07:00
platform HID: intel-ish-hid: fix module device-id handling 2021-11-11 22:45:40 +01:00
pnp
power power: supply: bq25890: Fix initial setting of the F_CONV_RATE field 2021-11-02 16:48:47 +01:00
powercap powercap/drivers/dtpm: Fix power limit initialization 2021-10-21 16:03:31 +02:00
pps
ps3
ptp ptp: fix code indentation issues 2021-10-28 14:42:20 +01:00
pwm
rapidio
ras
regulator regulator: Updates for v5.16 2021-11-01 19:04:47 -07:00
remoteproc
reset ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
rpmsg rpmsg: core: add API to get MTU 2021-10-21 12:35:35 +02:00
rtc Samsung SoC drivers changes for v5.16 2021-10-26 17:16:03 +02:00
s390 VFIO updates for v5.16-rc1 2021-11-03 13:29:36 -07:00
sbus
scsi vhost,virtio,vhost: fixes,features 2021-11-03 15:00:39 -07:00
sh
siox
slimbus
soc ARM: SoC drivers for 5.16 2021-11-03 17:00:52 -07:00
soundwire soundwire: qcom: add debugfs entry for soundwire register dump 2021-10-20 20:54:59 +05:30
spi spi: Updates for v5.16 2021-11-01 19:09:04 -07:00
spmi
ssb
staging Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
target for-5.16/ki_complete-2021-10-29 2021-11-01 10:17:11 -07:00
tc
tee Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
thermal Merge branches 'thermal-int340x', 'thermal-powerclamp' and 'thermal-docs' 2021-10-26 15:00:55 +02:00
thunderbolt thunderbolt: Changes for v5.16 merge window 2021-10-25 13:17:29 +02:00
tty TTY / Serial driver update for 5.16-rc1 2021-11-04 09:09:37 -07:00
uio Drivers: hv: vmbus: Mark vmbus ring buffer visible to host in Isolation VM 2021-10-28 11:22:23 +00:00
usb USB / Thunderbolt changes for 5.16-rc1 2021-11-04 07:50:43 -07:00
vdpa vhost,virtio,vhost: fixes,features 2021-11-03 15:00:39 -07:00
vfio
vhost vdpa: Introduce and use vdpa device get, set config helpers 2021-11-01 05:26:49 -04:00
video powerpc updates for 5.16 2021-11-05 08:15:46 -07:00
virt
virtio Char/Misc driver update for 5.16-rc1 2021-11-04 08:21:47 -07:00
visorbus
vlynq
vme
w1
watchdog ARM: SoC DT updates for v5.16 2021-11-03 16:56:03 -07:00
xen IOMMU Updates for Linux v5.16: 2021-11-04 11:11:24 -07:00
zorro
Kconfig
Makefile