android_kernel_asus_sm8350/drivers
Hangyu Hua 598165f1e4 UPSTREAM: usb: gadget: clear related members when goto fail
commit 501e38a5531efbd77d5c73c0ba838a889bfc1d74 upstream.

dev->config and dev->hs_config and dev->dev need to be cleaned if
dev_config fails to avoid UAF.

Bug: 220261709
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Link: https://lore.kernel.org/r/20211231172138.7993-3-hbh25y@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Change-Id: I149a16bc8db7262c3ab9c2f72a0f10c6caebee83
2022-03-22 11:41:56 +00:00
..
accessibility
acpi This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
amba This is the 5.4.158 stable release 2021-11-06 14:08:38 +01:00
android Merge branch 'android11-5.4' into 'android11-5.4-lts' 2022-02-11 16:21:49 +01:00
ata libata: if T_LENGTH is zero, dma direction should be DMA_NONE 2021-12-22 09:29:39 +01:00
atm atm: nicstar: register the interrupt handler in the right place 2021-07-19 08:53:12 +02:00
auxdisplay auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-17 09:48:45 +01:00
base This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-15 09:47:37 +02:00
block This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
bluetooth This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
bus bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893 2021-10-13 10:08:19 +02:00
cdrom cdrom: gdrom: initialize global variable at init time 2021-05-26 12:05:19 +02:00
char This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
clk This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
clocksource This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
connector
counter counter: 104-quad-8: Return error when invalid mode during ceiling_write 2021-09-15 09:47:34 +02:00
cpufreq This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
cpuidle This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
crypto This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
dax
dca
devfreq PM / devfreq: Use more accurate returned new_freq as resume_freq 2021-05-14 09:44:20 +02:00
dio
dma This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
dma-buf This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
edac EDAC/xgene: Fix deferred probing 2022-02-08 18:24:34 +01:00
eisa
extcon Merge 5.4.133 into android11-5.4-lts 2021-07-20 11:32:58 +02:00
firewire
firmware Merge tag 'android11-5.4.180_r00' into android11-5.4 2022-03-21 12:44:03 +01:00
fpga fpga: machxo2-spi: Fix missing error code in machxo2_write_complete() 2021-09-30 10:09:23 +02:00
fsi fsi/sbefifo: Fix reset timeout 2021-07-14 16:53:42 +02:00
gnss
gpio gpio: aspeed: Convert aspeed_gpio.lock to raw_spinlock 2022-01-27 09:19:43 +01:00
gpu This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
greybus
hid This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 09:19:41 +01:00
hv hyperv/vmbus: include linux/bitops.h 2021-11-17 09:48:20 +01:00
hwmon This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
hwspinlock
hwtracing intel_th: Wait until port is in reset before programming it 2021-07-20 16:10:46 +02:00
i2c This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
i3c Revert "i3c master: fix missing destroy_workqueue() on error in i3c_master_register" 2021-05-14 09:44:15 +02:00
ide
idle
iio iio: adc: stm32: fix a current leak by resetting pcsel before disabling vdda 2021-12-22 09:29:35 +01:00
infiniband This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
input Input: touchscreen - Fix backport of a02dcde595f7cbd240ccd64de96034ad91cffc40 2022-01-11 15:23:30 +01:00
interconnect This is the 5.4.113 stable release 2021-04-16 12:16:55 +02:00
iommu This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 15:42:36 +02:00
irqchip This is the 5.4.165 stable release 2021-12-14 15:19:08 +01:00
isdn mISDN: change function names to avoid conflicts 2022-01-11 15:23:33 +01:00
leds leds: trigger: audio: Add an activate callback to ensure the initial brightness is set 2021-09-15 09:47:33 +02:00
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-09-30 10:09:22 +02:00
md Merge tag 'android11-5.4.180_r00' into android11-5.4 2022-03-21 12:44:03 +01:00
media This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
memory memory: fsl_ifc: fix leak of irq and nand_irq in fsl_ifc_ctrl_probe 2021-11-17 09:48:42 +01:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-17 09:48:37 +01:00
message
mfd Merge 5.4.172 into android11-5.4-lts 2022-01-17 10:00:47 +01:00
misc This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
mmc Merge tag 'android11-5.4.180_r00' into android11-5.4 2022-03-21 12:44:03 +01:00
mtd This is the 5.4.176 stable release 2022-02-01 17:48:27 +01:00
mux
net This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
nfc NFC: st21nfca: Fix memory leak in device probe and remove 2022-01-05 12:37:44 +01:00
ntb NTB: perf: Fix an error code in perf_setup_inbuf() 2021-09-22 12:26:44 +02:00
nubus
nvdimm libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind 2021-10-06 15:42:38 +02:00
nvme nvme-tcp: fix bogus request completion when failing to send AER 2022-02-16 12:52:49 +01:00
nvmem This is the 5.4.155 stable release 2021-10-20 12:35:49 +02:00
of This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
opp This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
oprofile
parisc parisc: pdc_stable: Fix memory leak in pdcs_register_pathentries 2022-01-27 09:19:53 +01:00
parport parport: remove non-zero check on count 2021-09-22 12:26:36 +02:00
pci This is the 5.4.177 stable release 2022-02-09 12:23:04 +01:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 09:19:37 +01:00
perf drivers/perf: fix the missed ida_simple_remove() in ddr_perf_probe() 2021-07-14 16:53:14 +02:00
phy This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
pinctrl This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
platform This is the 5.4.170 stable release 2022-01-05 13:23:05 +01:00
pnp
power This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-10-13 10:08:19 +02:00
pwm Merge 5.4.149 into android11-5.4-lts 2021-10-01 14:07:54 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-26 12:05:17 +02:00
ras RAS/CEC: Correct ce_add_elem()'s returned values 2021-04-14 08:24:18 +02:00
regulator This is the 5.4.174 stable release 2022-01-31 15:14:13 +01:00
remoteproc BACKPORT: remoteproc: core: Remove casting to rproc_handle_resource_t 2021-05-05 14:43:46 +00:00
reset This is the 5.4.160 stable release 2021-11-17 10:19:21 +01:00
rpmsg This is the 5.4.176 stable release 2022-02-01 17:48:27 +01:00
rtc This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
s390 scsi: zfcp: Fix failed recovery on gone remote port with non-NPIV FCP devices 2022-02-01 17:24:33 +01:00
sbus
scsi This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 10:47:17 +01:00
siox
slimbus Linux 5.4.143 2021-08-27 22:38:57 +02:00
soc This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
soundwire soundwire: stream: Fix test for DP prepare complete 2021-07-14 16:53:45 +02:00
spi This is the 5.4.178 stable release 2022-02-09 14:02:29 +01:00
spmi
ssb ssb: Fix error return code in ssb_bus_scan() 2021-07-14 16:53:29 +02:00
staging This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
target scsi: target: iscsi: Make sure the np under each tpg is unique 2022-02-16 12:52:48 +01:00
tc
tee tee: fix put order in teedev_close_context() 2022-01-27 09:19:30 +01:00
thermal This is the 5.4.164 stable release 2021-12-08 09:19:28 +01:00
thunderbolt thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue 2021-06-03 08:59:03 +02:00
tty This is the 5.4.180 stable release 2022-02-16 17:17:22 +01:00
uio uio_hv_generic: Fix a memory leak in error handling paths 2021-05-26 12:05:17 +02:00
usb UPSTREAM: usb: gadget: clear related members when goto fail 2022-03-22 11:41:56 +00:00
vfio This is the 5.4.148 stable release 2021-09-25 14:41:58 +02:00
vhost This is the 5.4.163 stable release 2021-12-01 09:41:48 +01:00
video This is the 5.4.164 stable release 2021-12-08 09:19:28 +01:00
virt
virtio This is the 5.4.168 stable release 2021-12-22 10:08:44 +01:00
visorbus visorbus: fix error return code in visorchipset_init() 2021-07-14 16:53:42 +02:00
vlynq
vme
w1 w1: Misuse of get_user()/put_user() reported by sparse 2022-01-27 09:19:48 +01:00
watchdog ar7: fix kernel builds for compiler test 2021-11-17 09:48:46 +01:00
xen xen: detect uninitialized xenbus in xenbus_init 2021-12-01 09:23:28 +01:00
zorro
Kconfig
Makefile
OWNERS