linux/drivers
Johan Hovold 697c413757 can: softing_cs: softingcs_probe(): fix memleak on registration failure
commit ced4913efb upstream.

In case device registration fails during probe, the driver state and
the embedded platform device structure needs to be freed using
platform_device_put() to properly free all resources (e.g. the device
name).

Fixes: 0a0b7a5f7a ("can: add driver for Softing card")
Link: https://lore.kernel.org/all/20211222104843.6105-1-johan@kernel.org
Cc: stable@vger.kernel.org # 2.6.38
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-27 11:02:56 +01:00
..
accessibility
acpi ACPI: CPPC: Add NULL pointer check to cppc_get_perf() 2021-12-01 09:04:38 +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 devtmpfs regression fix: reconfigure on each mount 2022-01-20 09:13:13 +01:00
bcma
block xen/blkfront: harden blkfront against event channel storms 2021-12-22 09:32:51 +01:00
bluetooth Bluetooth: btbcm: disable read tx power for MacBook Air 8,1 and 8,2 2022-01-16 09:12:44 +01:00
bus bus: sunxi-rsb: Fix shutdown 2021-12-29 12:28:38 +01:00
cdrom
char random: fix crash on multiple early calls to add_bootloader_randomness() 2022-01-16 09:12:45 +01:00
clk clk: Don't parent clks until the parent is fully registered 2021-12-22 09:32:39 +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: Fix get_cpu_device() failure in add_cpu_dev_symlink() 2021-12-08 09:04:42 +01:00
cpuidle
crypto
cxl
dax
dca
devfreq
dio
dma dmaengine: st_fdma: fix MODULE_ALIAS 2021-12-22 09:32:41 +01:00
dma-buf dma-buf: system_heap: Use 'for_each_sgtable_sg' in pages free flow 2021-12-08 09:04:42 +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 firmware: qemu_fw_cfg: fix kobject leak in probe error path 2022-01-20 09:13:15 +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/amd/display: explicitly set is_dsc_supported to false before use 2022-01-20 09:13:13 +01:00
greybus
hid HID: wacom: Avoid using stale array indicies to read contact count 2022-01-27 11:02:47 +01:00
hsi
hv Drivers: hv: balloon: Use VMBUS_RING_SIZE() wrapper for dm_ring_size 2021-11-25 09:48:46 +01:00
hwmon hwmon: (lm90) Do not report 'busy' status bit as alarm 2021-12-29 12:29:02 +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: accel: kxcjk-1013: Fix possible memory leak in probe and remove 2021-12-14 10:57:21 +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/amd: Clarify AMD IOMMUv2 initialization messages 2021-12-01 09:04:55 +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: cec-pin: fix interrupt en/disable handling 2022-01-27 11:02:56 +01:00
memory
memstick
message
mfd mfd: intel-lpss: Fix too early PM enablement in the ACPI ->probe() 2022-01-16 09:12:44 +01:00
misc misc: fastrpc: fix improper packet size calculation 2021-12-14 10:57:23 +01:00
mmc mmc: sdhci-pci: Add PCI ID for Intel ADL 2022-01-16 09:12:43 +01:00
most
mtd mtd: rawnand: ingenic: JZ4740 needs 'oob_first' read page function 2022-01-27 11:02:49 +01:00
mux
net can: softing_cs: softingcs_probe(): fix memleak on registration failure 2022-01-27 11:02:56 +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 nvmet: use IOCB_NOWAIT only if the filesystem supports it 2021-12-01 09:04:52 +01:00
nvmem
of
opp
parisc
parport
pci PCI/MSI: Mask MSI-X vectors only on success 2021-12-22 09:32:46 +01:00
pcmcia
perf
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: bq25890: Enable continuous conversion for ADC at charging 2022-01-11 15:35:17 +01:00
powercap
pps
ps3
ptp ptp: ocp: Fix a couple NULL vs IS_ERR() checks 2021-11-25 09:48:40 +01:00
pwm
rapidio
ras
regulator
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: change clk_disable_unprepare to clk_unprepare 2021-12-29 12:28:39 +01:00
spmi
ssb
staging staging: greybus: fix stack size warning with UBSAN 2022-01-16 09:12:45 +01:00
target
tc
tee tee: optee: Fix incorrect page free bug 2021-12-29 12:28:59 +01:00
thermal thermal: int340x: Fix VCoRefLow MMIO bit offset for TGL 2021-12-14 10:57:14 +01:00
thunderbolt
tty xen/console: harden hvc_xen against event channel storms 2021-12-22 09:32:52 +01:00
uio
usb USB: Fix "slab-out-of-bounds Write" bug in usb_hcd_poll_rh_status 2022-01-16 09:12:43 +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 video: vga16fb: Only probe for EGA and VGA 16 color graphic cards 2022-01-20 09:13:14 +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_ring: Fix querying of maximum DMA mapping size for virtio device 2021-12-22 09:32:36 +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