Ubuntu-focal-kernel/drivers
Barnabás Pőcze 4d2a100e54 platform/x86: wmi: do not fail if disabling fails
BugLink: https://bugs.launchpad.net/bugs/1953387

[ Upstream commit 1975718c488a39128f1f515b23ae61a5a214cc3d ]

Previously, `__query_block()` would fail if the
second WCxx method call failed. However, the
WQxx method might have succeeded, and potentially
allocated memory for the result. Instead of
throwing away the result and potentially
leaking memory, ignore the result of
the second WCxx call.

Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Link: https://lore.kernel.org/r/20210904175450.156801-25-pobrn@protonmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
2022-01-13 18:42:04 +01:00
..
accessibility
acpi ACPI: resources: Add one more Medion model in IRQ override quirk 2021-11-22 17:47:28 +01:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2022-01-13 18:41:39 +01:00
android binder: use cred instead of task for getsecid 2022-01-13 18:41:44 +01:00
ata libata: fix checking of DMA state 2022-01-13 18:41:57 +01:00
atm
auxdisplay
base regmap: Fix possible double-free in regcache_rbtree_exit() 2021-11-24 12:09:22 +01:00
bcma bcma: Fix memory leak for internally-handled cores 2021-10-11 17:08:50 -06:00
block cryptoloop: add a deprecation warning 2021-10-01 11:34:00 +02:00
bluetooth Bluetooth: hci_ldisc: require CAP_NET_ADMIN to attach N_HCI ldisc 2021-11-05 09:13:05 +01:00
bus bus: ti-sysc: Use CLKDM_NOAUTO for dra7 dcan1 for errata i893 2021-11-12 14:07:29 +01:00
cdrom
char tpm: Check for integer overflow in tpm2_map_response_body() 2022-01-13 18:41:46 +01:00
clk clk: at91: clk-generated: Limit the requested rate to our range 2021-10-12 16:31:27 -06:00
clocksource clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel 2021-10-11 17:08:45 -06:00
connector
counter counter: 104-quad-8: Return error when invalid mode during ceiling_write 2021-10-11 17:08:48 -06:00
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-11-05 09:12:47 +01:00
cpuidle
crypto crypto: s5p-sss - Add error handling in s5p_aes_probe() 2022-01-13 18:41:46 +01:00
dax
dca
devfreq
dio
dma dmaengine: xilinx_dma: Set DMA mask for coherent APIs 2021-10-27 17:04:22 -06:00
dma-buf dma-buf: WARN on dmabuf release with pending attachments 2022-01-13 18:42:03 +01:00
edac EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell 2022-01-13 18:41:55 +01:00
eisa
extcon
firewire
firmware firmware/psci: fix application of sizeof to pointer 2022-01-13 18:41:46 +01:00
fpga fpga: machxo2-spi: Fix missing error code in machxo2_write_complete() 2021-11-05 09:12:43 +01:00
fsi
gnss
gpio gpio: pca953x: Improve bias setting 2021-11-22 17:30:57 +01:00
gpu drm/panel-orientation-quirks: add Valve Steam Deck 2022-01-13 18:42:04 +01:00
greybus
hid HID: wacom: Add new Intuos BT (CTL-4100WL/CTL-6100WL) device IDs 2021-11-22 14:27:00 +01:00
hsi
hv hyperv/vmbus: include linux/bitops.h 2022-01-13 18:41:50 +01:00
hwmon hwmon: (pmbus/lm25066) Add offset coefficients 2022-01-13 18:41:54 +01:00
hwspinlock
hwtracing
i2c i2c: acpi: fix resource leak in reconfiguration device addition 2021-11-12 14:07:31 +01:00
i3c
ide
idle
iio iio: dac: ad5446: Fix ad5622_write() return value 2022-01-13 18:42:02 +01:00
infiniband RDMA/qedr: Fix NULL deref for query_qp on the GSI QP 2022-01-13 18:41:58 +01:00
input Input: i8042 - Add quirk for Fujitsu Lifebook T725 2022-01-13 18:41:44 +01:00
interconnect
iommu iommu: Check if group is NULL before remove device 2021-09-24 12:27:44 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-11-05 09:12:50 +01:00
irqchip irqchip/gic-v3-its: Fix potential VPE leak on error 2021-11-05 09:12:44 +01:00
isdn isdn: mISDN: Fix sleeping function called from invalid context 2021-11-22 17:31:04 +01:00
leds leds: trigger: audio: Add an activate callback to ensure the initial brightness is set 2021-10-11 17:08:47 -06:00
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-11-05 09:12:41 +01:00
md md: fix a lock order reversal in md_alloc 2021-11-05 09:12:44 +01:00
media media: v4l2-ioctl: Fix check_ext_ctrls 2022-01-13 18:41:46 +01:00
memory
memstick
message
mfd mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set 2021-10-12 16:31:44 -06:00
misc cb710: avoid NULL pointer subtraction 2021-11-22 14:29:45 +01:00
mmc mmc: winbond: don't build on M68K 2022-01-13 18:41:51 +01:00
mtd mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' 2021-10-12 16:31:45 -06:00
mux
net rsi: Fix module dev_oper_mode parameter description 2022-01-13 18:41:58 +01:00
nfc nfc: port100: fix using -ERRNO as command type mask 2021-11-24 12:09:20 +01:00
ntb NTB: perf: Fix an error code in perf_setup_inbuf() 2021-10-12 16:31:44 -06:00
nubus
nvdimm libnvdimm/pmem: Fix crash triggered when I/O in-flight during unbind 2021-11-05 09:12:51 +01:00
nvme nvmet-tcp: fix header digest verification 2022-01-13 18:41:53 +01:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-11-22 17:30:56 +01:00
of of: Don't allow __of_attached_node_sysfs() without CONFIG_SYSFS 2021-10-12 16:31:36 -06:00
opp opp: Don't print an error if required-opps is missing 2021-10-12 16:31:35 -06:00
oprofile
parisc parisc: Move pci_dev_is_behind_card_dino to where it is used 2021-10-27 17:04:22 -06:00
parport parport: remove non-zero check on count 2021-10-12 16:31:38 -06:00
pci PCI: aardvark: Read all 16-bits from PCIE_MSI_PAYLOAD_REG 2022-01-13 18:42:01 +01:00
pcmcia pcmcia: i82092: fix a null pointer dereference bug 2021-09-20 18:50:10 +02:00
perf
phy
pinctrl pinctrl: core: fix possible memory leak in pinctrl_enable() 2022-01-13 18:42:02 +01:00
platform platform/x86: wmi: do not fail if disabling fails 2022-01-13 18:42:04 +01:00
pnp
power power: supply: max17042_battery: use VFSOC for capacity when no rsns 2022-01-13 18:41:59 +01:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-11-12 14:07:28 +01:00
pwm pwm: stm32-lp: Don't modify HW state in .remove() callback 2021-10-27 17:04:23 -06:00
rapidio
ras
regulator regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2022-01-13 18:41:55 +01:00
remoteproc
reset reset: socfpga: add empty driver allowing consumers to probe 2022-01-13 18:41:51 +01:00
rpmsg
rtc rtc: rx8010: select REGMAP_I2C 2021-10-27 17:04:23 -06:00
s390 s390/sclp: fix Secure-IPL facility detection 2021-10-12 16:31:42 -06:00
sbus
scsi scsi: qla2xxx: Fix unmap of already freed sgl 2022-01-13 18:41:50 +01:00
sfi
sh
siox
slimbus slimbus: ngd: reset dma setup during runtime pm 2021-09-24 12:27:52 +02:00
soc soc: qcom: mdt_loader: Drop PT_LOAD check on hash segment 2021-11-12 14:07:27 +01:00
soundwire
spi spi: spl022: fix Microwire full duplex mode 2022-01-13 18:41:52 +01:00
spmi
ssb
staging media: staging/intel-ipu3: css: Fix wrong size comparison imgu_css_fw_init 2022-01-13 18:41:42 +01:00
target scsi: target: avoid per-loop XCOPY buffer allocations 2021-10-12 16:31:26 -06:00
tc
tee tee: optee: Fix missing devices unregister during optee_remove 2021-11-22 17:30:59 +01:00
thermal thermal/drivers/int340x: Do not set a wrong tcc offset on resume 2021-11-05 09:12:46 +01:00
thunderbolt
tty serial: core: Fix initializing and restoring termios speed 2022-01-13 18:42:00 +01:00
uio
usb USB: chipidea: fix interrupt deadlock 2022-01-13 18:42:03 +01:00
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-10-12 16:31:25 -06:00
vhost vhost_net: fix OoB on sendmsg() failure. 2021-10-12 16:31:42 -06:00
video video: fbdev: gbefb: Only instantiate device when built for IP32 2021-11-12 14:07:30 +01:00
virt
virtio virtio: write back F_VERSION_1 before validate 2021-11-22 17:30:29 +01:00
visorbus
vlynq
vme
w1
watchdog watchdog: Fix OMAP watchdog early handling 2022-01-13 18:41:52 +01:00
xen xen/balloon: add late_initcall_sync() for initial ballooning done 2022-01-13 18:42:00 +01:00
zorro
Kconfig
Makefile