linux/drivers
Dominik Brodowski 3a4ecdfc0c pcmcia: fix setting of kthread task states
[ Upstream commit fbb3485f1f ]

We need to set TASK_INTERRUPTIBLE before calling kthread_should_stop().
Otherwise, kthread_stop() might see that the pccardd thread is still
in TASK_RUNNING state and fail to wake it up.

Additionally, we only need to set the state back to TASK_RUNNING if
kthread_should_stop() breaks the loop.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Fixes: d3046ba809 ("pcmcia: fix a boot time warning in pcmcia cs code")
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-01-27 11:04:02 +01:00
..
accessibility
acpi ACPI: scan: Create platform device for BCM4752 and LNV4752 ACPI nodes 2022-01-27 11:03:48 +01:00
amba
android binder: fix async_free_space accounting for empty parcels 2022-01-05 12:42:39 +01:00
ata libata: if T_LENGTH is zero, dma direction should be DMA_NONE 2021-12-22 09:32:49 +01:00
atm
auxdisplay auxdisplay: charlcd: checking for pointer reference before dereferencing 2022-01-11 15:35:17 +01:00
base regmap: Call regmap_debugfs_exit() prior to _init() 2022-01-27 11:04:00 +01:00
bcma
block floppy: Fix hang in watchdog when disk is ejected 2022-01-27 11:03:26 +01:00
bluetooth Bluetooth: hci_qca: Fix NULL vs IS_ERR_OR_NULL check in qca_serdev_probe 2022-01-27 11:03:53 +01:00
bus bus: mhi: core: Fix race while handling SYS_ERR at power up 2022-01-27 11:02:58 +01:00
cdrom
char tpm_tis: Fix an error handling path in 'tpm_tis_core_init()' 2022-01-27 11:04:01 +01:00
clk clk: bcm-2835: Remove rounding up the dividers 2022-01-27 11:03:03 +01:00
clocksource clocksource/drivers/dw_apb_timer_of: Fix probe failure 2021-12-14 10:57:23 +01:00
comedi
connector
counter
cpufreq cpufreq: qcom-hw: Fix probable nested interrupt handling 2022-01-27 11:03:15 +01:00
cpuidle
crypto crypto: octeontx2 - prevent underflow in get_cores_bmap() 2022-01-27 11:03:47 +01:00
cxl cxl/pmem: Fix reference counting for delayed work 2022-01-27 11:02:58 +01:00
dax
dca
devfreq
dio
dma dmaengine: st_fdma: fix MODULE_ALIAS 2021-12-22 09:32:41 +01:00
dma-buf dma_fence_array: Fix PENDING_ERROR leak in dma_fence_array_signaled() 2022-01-27 11:02:59 +01:00
edac EDAC/i10nm: Release mdev/mbase when failing to detect HBM 2022-01-11 15:35:15 +01:00
eisa
extcon
firewire
firmware drivers/firmware: Add missing platform_device_put() in sysfb_create_simplefb 2022-01-27 11:03:55 +01:00
fpga
fsi
gnss
gpio gpio: gpio-aspeed-sgpio: Fix wrong hwirq base in irq handler 2022-01-11 15:35:16 +01:00
gpu drm/tegra: vic: Fix DMA API misuse 2022-01-27 11:03:39 +01:00
greybus
hid HID: hid-uclogic-params: Invalid parameter check in uclogic_params_frame_init_v1_buttonpad 2022-01-27 11:03:55 +01:00
hsi
hv
hwmon hwmon: (mr75203) fix wrong power-up delay value 2022-01-27 11:03:48 +01:00
hwspinlock
hwtracing
i2c i2c: mpc: Avoid out of bounds memory access 2022-01-11 15:35:15 +01:00
i3c
idle
iio iio: trigger: Fix a scheduling whilst atomic issue seen on tsc2046 2022-01-27 11:02:57 +01:00
infiniband RDMA/uverbs: Check for null return of kmalloc_array 2022-01-11 15:35:13 +01:00
input Input: zinitix - make sure the IRQ is allocated before it gets enabled 2022-01-11 15:35:19 +01:00
interconnect
iommu iommu/io-pgtable-arm-v7s: Add error handle for page table allocation failure 2022-01-27 11:02:58 +01:00
ipack
irqchip irqchip: nvic: Fix offset for Interrupt Priority Offsets 2021-12-14 10:57:23 +01:00
isdn mISDN: change function names to avoid conflicts 2022-01-11 15:35:18 +01:00
leds
macintosh
mailbox
mcb
md md/raid1: fix missing bitmap update w/o WriteMostly devices 2022-01-11 15:35:15 +01:00
media media: coda/imx-vdoa: Handle dma_set_coherent_mask error codes 2022-01-27 11:03:37 +01:00
memory memory: renesas-rpc-if: Return error in case devm_ioremap_resource() fails 2022-01-27 11:03:11 +01:00
memstick
message
mfd mfd: atmel-flexcom: Use .resume_noirq 2022-01-27 11:03:18 +01:00
misc lkdtm: Fix content of section containing lkdtm_rodata_do_nothing() 2022-01-27 11:02:57 +01:00
mmc mmc: meson-mx-sdio: add IRQ check 2022-01-27 11:03:43 +01:00
most
mtd mtd: core: provide unique name for nvmem device 2022-01-27 11:03:26 +01:00
mux
net can: rcar_canfd: rcar_canfd_channel_probe(): make sure we free CAN network device 2022-01-27 11:04:01 +01:00
nfc NFC: st21nfca: Fix memory leak in device probe and remove 2022-01-05 12:42:36 +01:00
ntb
nubus
nvdimm
nvme
nvmem
of
opp
parisc
parport
pci PCI: Add function 1 DMA alias quirk for Marvell 88SE9125 SATA controller 2022-01-27 11:02:59 +01:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 11:04:02 +01:00
perf perf/arm-cmn: Fix CPU hotplug unregistration 2022-01-27 11:03:36 +01:00
phy
pinctrl pinctrl: mediatek: fix global-out-of-bounds issue 2021-12-29 12:29:01 +01:00
platform platform/x86/intel: hid: add quirk to support Surface Go 3 2022-01-16 09:12:45 +01:00
pnp
power power: reset: mt6397: Check for null res pointer 2022-01-27 11:03:49 +01:00
powercap
pps
ps3
ptp net: fix SOF_TIMESTAMPING_BIND_PHC to work with multiple sockets 2022-01-27 11:03:52 +01:00
pwm
rapidio
ras
regulator regulator: qcom-labibb: OCP interrupts are not a failure while disabled 2022-01-27 11:03:47 +01:00
remoteproc remoteproc: qcom: pas: Add missing power-domain "mxc" for CDSP 2022-01-20 09:13:14 +01:00
reset reset: renesas: Fix Runtime PM usage 2022-01-11 15:35:16 +01:00
rpmsg
rtc rtc: cmos: take rtc_lock while reading from CMOS 2022-01-27 11:02:52 +01:00
s390
sbus
scsi scsi: libiscsi: Fix UAF in iscsi_conn_get_param()/iscsi_conn_teardown() 2022-01-11 15:35:17 +01:00
sh
siox
slimbus
soc soc/tegra: fuse: Fix bitwise vs. logical OR warning 2021-12-22 09:32:43 +01:00
soundwire
spi spi: spi-meson-spifc: Add missing pm_runtime_disable() in meson_spifc_probe 2022-01-27 11:03:59 +01:00
spmi
ssb
staging staging: greybus: audio: Check null pointer 2022-01-27 11:03:52 +01:00
target
tc
tee tee: fix put order in teedev_close_context() 2022-01-27 11:03:12 +01:00
thermal thermal/drivers/imx8mm: Enable ADC when enabling monitor 2022-01-27 11:03:23 +01:00
thunderbolt
tty serial: stm32: move tx dma terminate DMA to shutdown 2022-01-27 11:03:56 +01:00
uio
usb usb: gadget: u_audio: Subdevice 0 for capture ctls 2022-01-27 11:03:54 +01:00
vdpa vdpa: Consider device id larger than 31 2021-12-22 09:32:39 +01:00
vfio
vhost vdpa: check that offsets are within bounds 2021-12-22 09:32:36 +01:00
video backlight: qcom-wled: Respect enabled-strings in set_brightness 2022-01-27 11:03:46 +01:00
virt nitro_enclaves: Use get_user_pages_unlocked() call to handle mmap assert 2022-01-05 12:42:39 +01:00
virtio virtio/virtio_mem: handle a possible NULL as a memcpy parameter 2022-01-27 11:02:59 +01:00
visorbus
vlynq
vme
w1
watchdog
xen xen/console: harden hvc_xen against event channel storms 2021-12-22 09:32:52 +01:00
zorro
Kconfig
Makefile virtio: always enter drivers/virtio/ 2021-12-22 09:32:39 +01:00