linux/drivers
Philipp Zabel cb5259dacd reset: bail if try_module_get() fails
[ Upstream commit 4fb26fb83f ]

Abort instead of returning a new reset control for a reset controller
device that is going to have its module unloaded.

Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Fixes: 61fc413176 ("reset: Add reset controller API")
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20210607082615.15160-1-p.zabel@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-07-20 16:00:38 +02:00
..
accessibility TTY/Serial driver updates for 5.13-rc1 2021-04-26 11:20:10 -07:00
acpi ACPI: video: Add quirk for the Dell Vostro 3350 2021-07-20 16:00:26 +02:00
amba amba: Make use of bus_type functions 2021-02-02 14:26:02 +01:00
android binder: Return EFAULT if we fail BINDER_ENABLE_ONEWAY_SPAM_DETECTION 2021-05-13 20:35:26 +02:00
ata ata: ahci_sunxi: Disable DIPM 2021-07-19 10:04:50 +02:00
atm atm: nicstar: register the interrupt handler in the right place 2021-07-19 10:04:42 +02:00
auxdisplay treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
base arch_topology: Avoid use-after-free for scale_freq_data 2021-07-20 16:00:31 +02:00
bcma bcma: remove unused function 2021-04-18 09:36:56 +03:00
block virtio-blk: Fix memory leak among suspend/resume procedure 2021-07-20 16:00:27 +02:00
bluetooth Bluetooth: btusb: fix bt fiwmare downloading failure issue for qca btsoc. 2021-07-19 10:04:46 +02:00
bus bus: mhi: pci-generic: Add missing 'pci_disable_pcie_error_reporting()' calls 2021-07-14 17:06:11 +02:00
cdrom cdrom: gdrom: initialize global variable at init time 2021-05-13 18:58:44 +02:00
char virtio_console: Assure used length from device is limited 2021-07-20 16:00:27 +02:00
clk clk: tegra: tegra124-emc: Fix clock imbalance in emc_set_timing() 2021-07-19 10:04:35 +02:00
clocksource clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround 2021-07-19 10:04:50 +02:00
comedi staging: comedi: move out of staging directory 2021-04-15 09:26:25 +02:00
connector net/connector: Add const qualifier to cb_id 2020-12-16 11:06:49 -08:00
counter 1st set of IIO/counter device support, features and cleanup in the 5.13 cycle 2021-03-26 12:09:47 +01:00
cpufreq cpufreq: scmi: Fix an error message 2021-07-20 16:00:28 +02:00
cpuidle Merge back earlier cpuidle updates for v5.13. 2021-04-08 20:05:49 +02:00
crypto crypto: qce - fix error return code in qce_skcipher_async_req_handle() 2021-07-14 17:07:51 +02:00
cxl cxl/mem: Fix memory device capacity probing 2021-04-16 18:21:56 -07:00
dax dax: avoid -Wempty-body warnings 2021-03-22 09:20:06 -07:00
dca dca: Use PTR_ERR_OR_ZERO() to simplify code 2020-05-15 16:25:20 +02:00
devfreq PM / devfreq: passive: Fix get_target_freq when not using required-opp 2021-07-14 17:06:53 +02:00
dio maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2020-06-17 10:57:41 -07:00
dma dmaengine: fsl-qdma: check dma_set_mask return value 2021-07-20 16:00:11 +02:00
dma-buf dma-buf: fix unintended pin/unpin warnings 2021-05-20 14:02:27 +02:00
edac EDAC/igen6: fix core dependency AGAIN 2021-07-20 16:00:10 +02:00
eisa treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
extcon extcon: intel-mrfld: Sync hardware and software state on init 2021-07-19 10:04:52 +02:00
firewire The usual updates from the irq departement: 2021-04-26 09:43:16 -07:00
firmware firmware: arm_scmi: Reset Rx buffer to max size during async commands 2021-07-20 16:00:38 +02:00
fpga fpga: stratix10-soc: Add missing fpga_mgr_free() call 2021-07-19 10:04:51 +02:00
fsi fsi: Add missing MODULE_DEVICE_TABLE 2021-07-20 16:00:16 +02:00
gnss treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
gpio gpio: pca953x: Add support for the On Semi pca9655 2021-07-20 16:00:18 +02:00
gpu drm/amdkfd: fix sysfs kobj leak 2021-07-20 16:00:26 +02:00
greybus greybus: es2: fix kernel-doc warnings 2021-04-16 07:26:50 +02:00
hid HID: surface-hid: Fix get-report request 2021-07-14 17:06:51 +02:00
hsi HSI: core: fix resource leaks in hsi_add_client_from_dt() 2021-04-16 00:14:49 +02:00
hv drivers: hv: Fix missing error code in vmbus_connect() 2021-07-14 17:06:32 +02:00
hwmon hwmon: (max31790) Fix fan speed reporting for fan7..12 2021-07-14 17:06:46 +02:00
hwspinlock hwspinlock: remove sirf driver 2021-03-17 21:22:06 -05:00
hwtracing intel_th: Wait until port is in reset before programming it 2021-07-20 16:00:22 +02:00
i2c i2c: core: Disable client irq on reboot/shutdown 2021-07-20 16:00:22 +02:00
i3c Revert "i3c master: fix missing destroy_workqueue() on error in i3c_master_register" 2021-04-24 22:21:01 +02:00
ide ide-5.11-2021-02-28 2021-02-28 15:48:25 -08:00
idle intel_idle: add Iclelake-D support 2021-04-08 19:18:07 +02:00
iio iio: magn: bmc150: Balance runtime pm + use pm_runtime_resume_and_get() 2021-07-20 16:00:13 +02:00
infiniband RDMA/cma: Fix rdma_resolve_route() memory leak 2021-07-19 10:04:45 +02:00
input Input: hideep - fix the uninitialized use in hideep_nvm_unlock() 2021-07-20 16:00:20 +02:00
interconnect interconnect: qcom: Add missing MODULE_DEVICE_TABLE 2021-05-11 07:26:31 +03:00
iommu iommu/arm-smmu: Fix arm_smmu_device refcount leak in address translation 2021-07-20 16:00:17 +02:00
ipack ipack/carriers/tpci200: Fix a double free in tpci200_pci_probe 2021-07-19 10:04:52 +02:00
irqchip irqchip fixes for 5.13, take #2 2021-06-17 15:22:31 +02:00
isdn mISDN: fix possible use-after-free in HFC_cleanup() 2021-07-19 10:04:31 +02:00
leds leds: turris-omnia: add missing MODULE_DEVICE_TABLE 2021-07-20 16:00:21 +02:00
lightnvm lightnvm: deprecated OCSSD support and schedule it for removal in Linux 5.15 2021-04-13 09:16:12 -06:00
macintosh macintosh/via-pmu: Fix build warning 2021-04-16 23:57:51 +10:00
mailbox mailbox: qcom-ipcc: Fix IPCC mbox channel exhaustion 2021-07-14 17:07:49 +02:00
mcb drivers: mcb: use symbol namespaces 2019-11-03 19:54:53 +01:00
md dm writecache: write at least 4k when committing 2021-07-19 10:04:54 +02:00
media media: v4l2-core: explicitly clear ioctl input data 2021-07-19 10:04:55 +02:00
memory memory: pl353: Fix error return code in pl353_smc_probe() 2021-07-20 16:00:36 +02:00
memstick memstick: rtsx_usb_ms: fix UAF 2021-07-14 17:06:25 +02:00
message scsi: message: fusion: Remove unused local variable 'vtarget' 2021-04-13 01:39:12 -04:00
mfd mfd: cpcap: Fix cpcap dmamask not set warnings 2021-07-20 16:00:16 +02:00
misc habanalabs/gaudi: set the correct rc in case of err 2021-07-20 16:00:19 +02:00
mmc mmc: core: Allow UHS-I voltage switch for SDSC cards if supported 2021-07-19 10:04:50 +02:00
most Staging/IIO driver updates for 5.13-rc1 2021-04-26 11:14:21 -07:00
mtd mtd: rawnand: marvell: add missing clk_disable_unprepare() on error in marvell_nfc_resume() 2021-07-14 17:07:42 +02:00
mux mux: gpio: Simplify code by using dev_err_probe() 2021-04-02 16:28:53 +02:00
net virtio_net: move tx vq operation under tx queue lock 2021-07-20 16:00:33 +02:00
nfc NFC: nfcmrvl: fix kernel-doc syntax in file headers 2021-05-23 17:26:38 -07:00
ntb NTB: Add support for EPF PCI Non-Transparent Bridge 2021-02-23 14:12:53 -06:00
nubus nubus: Remove cast to void pointer 2019-10-21 09:08:15 +02:00
nvdimm include: remove pagemap.h from blkdev.h 2021-05-06 19:24:11 -07:00
nvme nvme-tcp: can't set sk_user_data without write_lock 2021-07-20 16:00:33 +02:00
nvmem nvmem: core: add a missing of_node_put 2021-07-19 10:04:52 +02:00
of of: Fix truncation of memory sizes on 32-bit platforms 2021-07-14 17:07:42 +02:00
opp opp: Change return type of devm_pm_opp_attach_genpd() 2021-03-16 10:14:11 +05:30
parisc dma-mapping: split <linux/dma-mapping.h> 2020-10-06 07:07:03 +02:00
parport treewide: remove editor modelines and cruft 2021-05-07 00:26:34 -07:00
pci PCI: tegra194: Fix tegra_pcie_ep_raise_msi_irq() ill-defined shift 2021-07-20 16:00:31 +02:00
pcmcia pcmcia: rsrc_nonstatic: Fix call-back function as reference formatting 2021-03-15 08:22:23 +01:00
perf perf/arm-cmn: Fix invalid pointer when access dtc object sharing the same IRQ number 2021-07-14 17:06:46 +02:00
phy phy: intel: Fix for warnings due to EMMC clock 175Mhz change in FIP 2021-07-20 16:00:22 +02:00
pinctrl pinctrl: mcp23s08: Fix missing unlock on error in mcp23s08_irq() 2021-07-19 10:04:54 +02:00
platform platform/x86: toshiba_acpi: Fix missing error code in toshiba_acpi_setup_keyboard() 2021-07-14 17:06:34 +02:00
pnp PNP: pnpbios: Use DEFINE_SPINLOCK() for spinlock 2021-01-22 16:22:57 +01:00
power power: supply: rt5033_battery: Fix device tree enumeration 2021-07-20 16:00:28 +02:00
powercap powercap: Add Hygon Fam18h RAPL support 2021-03-18 19:42:23 +01:00
pps TTY/Serial driver updates for 5.13-rc1 2021-04-26 11:20:10 -07:00
ps3 powerpc/ps3: use dma_mapping_error() 2020-12-15 22:50:12 +11:00
ptp ptp: improve max_adj check against unreasonable values 2021-06-15 10:59:46 -07:00
pwm pwm: imx1: Don't disable clocks at device remove time 2021-07-20 16:00:31 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-13 18:32:19 +02:00
ras RAS/CEC: Correct ce_add_elem()'s returned values 2021-04-07 11:52:26 +02:00
regulator regulator: bd9576: Fix the driver name in id table 2021-07-14 17:06:47 +02:00
remoteproc remoteproc: k3-r5: Fix an error message 2021-07-20 16:00:28 +02:00
reset reset: bail if try_module_get() fails 2021-07-20 16:00:38 +02:00
rpmsg rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data() 2021-04-09 11:08:42 -05:00
rtc rtc: fix snprintf() checking in is_rtc_hctosys() 2021-07-20 16:00:36 +02:00
s390 s390/sclp_vt220: fix console name to match device 2021-07-20 16:00:17 +02:00
sbus module: remove never implemented MODULE_SUPPORTED_DEVICE 2021-03-17 13:16:18 -07:00
scsi scsi: storvsc: Correctly handle multiple flags in srb_status 2021-07-20 16:00:18 +02:00
sh The usual updates from the irq departement: 2021-04-26 09:43:16 -07:00
siox siox: Make remove callback return void 2020-12-10 16:17:15 +01:00
slimbus slimbus: qcom: fix potential NULL dereference in qcom_slim_prg_slew() 2020-12-10 16:23:56 +01:00
soc soc: mtk-pm-domains: Fix the clock prepared issue 2021-07-20 16:00:38 +02:00
soundwire soundwire: bus: handle -ENODATA errors in clock stop/start sequences 2021-07-20 16:00:12 +02:00
spi spi: spi-sun6i: Fix chipselect/clock bug 2021-07-14 17:06:49 +02:00
spmi spmi: spmi-pmic-arb: Fix hw_irq overflow 2021-02-12 12:26:46 +01:00
ssb ssb: Fix error return code in ssb_bus_scan() 2021-07-14 17:07:05 +02:00
staging staging: rtl8723bs: fix check allowing 5Ghz settings 2021-07-20 16:00:21 +02:00
target scsi: target: cxgbit: Unmap DMA buffer before calling target_execute_cmd() 2021-07-14 17:07:49 +02:00
tc The main MIPS changes for 5.6: 2020-01-31 11:28:31 -08:00
tee OP-TEE use export_uuid() to copy UUID 2021-06-05 15:43:11 -07:00
thermal thermal/drivers/int340x/processor_thermal: Fix tcc setting 2021-07-19 10:04:51 +02:00
thunderbolt thunderbolt: Fix DROM handling for USB4 DROM 2021-07-20 16:00:18 +02:00
tty serial: tty: uartlite: fix console setup 2021-07-20 16:00:17 +02:00
uio uio_hv_generic: Fix another memory leak in error handling paths 2021-05-14 13:26:04 +02:00
usb usb: gadget: hid: fix error return code in hid_bind() 2021-07-20 16:00:20 +02:00
vdpa vdpa/mlx5: Clear vq ready indication upon device reset 2021-07-20 16:00:33 +02:00
vfio vfio/pci: Handle concurrent vma faults 2021-07-14 17:07:46 +02:00
vhost virtio,vhost,vdpa: features, fixes 2021-05-05 13:31:39 -07:00
video backlight: lm3630a: Fix return code of .update_status() callback 2021-07-20 16:00:21 +02:00
virt nitro_enclaves: Fix stale file descriptors on failed usercopy 2021-04-29 19:06:49 +02:00
virtio virtio-mem: don't read big block size in Sub Block Mode 2021-07-20 16:00:34 +02:00
visorbus visorbus: fix error return code in visorchipset_init() 2021-07-14 17:07:35 +02:00
vlynq treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 102 2019-05-24 17:39:00 +02:00
vme vme: make remove callback return void 2021-02-09 12:15:07 +01:00
w1 w1: ds2438: fixing bug that would always get page0 2021-07-20 16:00:14 +02:00
watchdog watchdog: jz4740: Fix return value check in jz4740_wdt_probe() 2021-07-20 16:00:30 +02:00
xen xen/events: reset active flag for lateeoi events later 2021-06-24 12:52:36 +02:00
zorro zorro: Fix address space collision message with RAM expansion boards 2020-08-26 13:26:52 +02:00
Kconfig staging: comedi: move out of staging directory 2021-04-15 09:26:25 +02:00
Makefile virtio,vhost,vdpa: features, fixes 2021-05-05 13:31:39 -07:00