linux-stable/drivers
Dan Carpenter 4095a0b2b5 memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host()
[ Upstream commit beae4a6258 ]

The "msh" pointer is device managed, meaning that memstick_alloc_host()
calls device_initialize() on it.  That means that it can't be free
using kfree() but must instead be freed with memstick_free_host().
Otherwise it leads to a tiny memory leak of device resources.

Fixes: 60fdd931d5 ("memstick: add support for JMicron jmb38x MemoryStick host controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211011123912.GD15188@kili
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 11:40:30 +01:00
..
accessibility
acpi ACPI: battery: Accept charges over the design capacity as full 2021-11-26 11:40:28 +01:00
amba ARM: 9120/1: Revert "amba: make use of -1 IRQs warn" 2021-11-12 14:28:22 +01:00
android binder: use cred instead of task for selinux checks 2021-11-26 11:40:20 +01:00
ata libata: fix checking of DMA state 2021-11-26 11:40:24 +01:00
atm atm: nicstar: register the interrupt handler in the right place 2021-07-20 16:17:44 +02:00
auxdisplay
base regmap: Fix possible double-free in regcache_rbtree_exit() 2021-11-02 18:25:12 +01:00
bcma bcma: Fix memory leak for internally-handled cores 2021-09-22 11:45:22 +02:00
block cryptoloop: add a deprecation warning 2021-09-22 11:45:15 +02:00
bluetooth Bluetooth: btusb: fix bt fiwmare downloading failure issue for qca btsoc. 2021-07-20 16:17:45 +02:00
bus bus: qcom: Put child node before return 2021-05-22 10:57:28 +02:00
cdrom cdrom: gdrom: initialize global variable at init time 2021-05-26 11:47:00 +02:00
char hwrng: mtk - Force runtime pm ops for sleep ops 2021-11-26 11:40:30 +01:00
clk clk: kirkwood: Fix a clocking boot regression 2021-09-22 11:45:23 +02:00
clocksource clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel 2021-09-22 11:45:19 +02:00
connector
cpufreq cpufreq: schedutil: Destroy mutex before kobject_put() frees the memory 2021-10-06 15:05:08 +02:00
cpuidle cpuidle: Fix kobject memory leaks in error paths 2021-11-26 11:40:29 +01:00
crypto crypto: qat - disregard spurious PFVF interrupts 2021-11-26 11:40:30 +01:00
dax
dca
devfreq
dio
dma dmaengine: xilinx_dma: Set DMA mask for coherent APIs 2021-09-26 13:37:29 +02:00
dma-buf dma-buf/sync_file: Don't leak fences on merge failure 2021-07-28 11:12:16 +02:00
edac EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell 2021-11-26 11:40:23 +01:00
eisa
extcon extcon: max8997: Add missing modalias string 2021-07-20 16:17:41 +02:00
firewire
firmware efi: Change down_interruptible() in virt_efi_reset_system() to down_trylock() 2021-10-20 10:42:03 +02:00
fmc
fpga
fsi
gpio gpio: zynq: Check return value of pm_runtime_get_sync 2021-07-20 16:17:50 +02:00
gpu drm/msm/dsi: fix off by one in dsi_bus_clk_enable error handling 2021-10-20 10:42:05 +02:00
hid HID: apple: Fix logical maximum and usage maximum of Magic Keyboard JIS 2021-10-17 10:08:34 +02:00
hsi HSI: core: fix resource leaks in hsi_add_client_from_dt() 2021-05-22 10:57:31 +02:00
hv hyperv/vmbus: include linux/bitops.h 2021-11-26 11:40:22 +01:00
hwmon hwmon: (pmbus/lm25066) Add offset coefficients 2021-11-26 11:40:22 +01:00
hwspinlock
hwtracing intel_th: Wait until port is in reset before programming it 2021-07-20 16:17:51 +02:00
i2c i2c: acpi: fix resource leak in reconfiguration device addition 2021-10-17 10:08:33 +02:00
ide
idle
iio iio: dac: ad5446: Fix ad5622_write() return value 2021-11-26 11:40:25 +01:00
infiniband RDMA/qedr: Fix NULL deref for query_qp on the GSI QP 2021-11-26 11:40:24 +01:00
input Input: i8042 - Add quirk for Fujitsu Lifebook T725 2021-11-26 11:40:20 +01:00
iommu iommu/vt-d: Fix sysfs leak in alloc_iommu() 2021-06-03 08:36:12 +02:00
ipack ipack: ipoctal: fix module reference leak 2021-10-06 15:05:09 +02:00
irqchip irqchip/gic-v3-its: Fix potential VPE leak on error 2021-10-06 15:05:06 +02:00
isdn isdn: mISDN: Fix sleeping function called from invalid context 2021-10-27 09:51:41 +02:00
leds leds: ktd2692: Fix an error handling path 2021-07-20 16:17:41 +02:00
lightnvm
macintosh
mailbox
mcb mcb: fix error handling in mcb_alloc_bus() 2021-10-06 15:05:05 +02:00
md md: fix a lock order reversal in md_alloc 2021-10-06 15:05:06 +02:00
media media: cx23885: Fix snd_card_free call on null card pointer 2021-11-26 11:40:29 +01:00
memory memory: fsl_ifc: fix leak of private memory on probe failure 2021-07-20 16:17:55 +02:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-26 11:40:30 +01:00
message
mfd mfd: Don't use irq_create_mapping() to resolve a mapping 2021-09-22 11:45:34 +02:00
misc cb710: avoid NULL pointer subtraction 2021-10-20 10:42:03 +02:00
mmc mmc: winbond: don't build on M68K 2021-11-26 11:40:22 +01:00
mtd mtd: rawnand: cafe: Fix a resource leak in the error handling path of 'cafe_nand_probe()' 2021-09-22 11:45:35 +02:00
mux
net b43: fix a lower bounds test 2021-11-26 11:40:30 +01:00
nfc nfc: port100: fix using -ERRNO as command type mask 2021-11-02 18:25:11 +01:00
ntb
nubus
nvdimm
nvme nvme-rdma: don't update queue count when failing to set io queues 2021-09-22 11:45:17 +02:00
nvmem nvmem: Fix shift-out-of-bound (UBSAN) with byte size cells 2021-10-20 10:42:04 +02:00
of of: Fix truncation of memory sizes on 32-bit platforms 2021-07-20 16:17:40 +02:00
oprofile
parisc parisc: Move pci_dev_is_behind_card_dino to where it is used 2021-09-26 13:37:29 +02:00
parport parport: remove non-zero check on count 2021-09-22 11:45:31 +02:00
pci PCI: aardvark: Read all 16-bits from PCIE_MSI_PAYLOAD_REG 2021-11-26 11:40:25 +01:00
pcmcia pcmcia: i82092: fix a null pointer dereference bug 2021-08-15 13:03:32 +02:00
perf perf/arm_pmu_platform: Fix error handling 2021-05-22 10:57:17 +02:00
phy phy: ti: dm816x: Fix the error handling path in 'dm816x_usb_phy_probe() 2021-07-20 16:17:41 +02:00
pinctrl pinctrl: core: fix possible memory leak in pinctrl_enable() 2021-11-26 11:40:25 +01:00
platform platform/x86: wmi: do not fail if disabling fails 2021-11-26 11:40:26 +01:00
pnp
power power: supply: max17042_battery: use VFSOC for capacity when no rsns 2021-11-26 11:40:24 +01:00
powercap
pps
ps3
ptp ptp_pch: Load module automatically if ID matches 2021-10-17 10:08:33 +02:00
pwm pwm: rockchip: Don't modify HW state in .remove() callback 2021-09-26 13:37:30 +02:00
rapidio rapidio: handle create_workqueue() failure 2021-05-26 11:46:59 +02:00
ras
regulator regulator: s5m8767: do not use reset value as DVS voltage if GPIO DVS is disabled 2021-11-26 11:40:23 +01:00
remoteproc
reset reset: ti-syscon: fix to_ti_syscon_reset_data macro 2021-07-28 11:12:14 +02:00
rpmsg rpmsg: qcom_glink_native: fix error return code of qcom_glink_rx_data() 2021-05-22 10:57:38 +02:00
rtc rtc: tps65910: Correct driver module alias 2021-09-22 11:45:23 +02:00
s390 s390/cio: add dev_busid sysfs entry for each subchannel 2021-09-22 11:45:18 +02:00
sbus
scsi scsi: qla2xxx: Fix unmap of already freed sgl 2021-11-26 11:40:22 +01:00
sfi
sh
sn
soc soc: qcom: smsm: Fix missed interrupts if state changes while masked 2021-09-22 11:45:20 +02:00
spi spi: bcm-qspi: Fix missing clk_disable_unprepare() on error in bcm_qspi_probe() 2021-11-26 11:40:29 +01:00
spmi
ssb ssb: sdio: Don't overwrite const buffer if block_write fails 2021-07-20 16:17:30 +02:00
staging staging: rtl8192u: fix control-message timeouts 2021-11-12 14:28:25 +01:00
target scsi: target: Fix protect handling in WRITE SAME(32) 2021-07-28 11:12:18 +02:00
tc
tee tee: optee: do not check memref size on return from Secure World 2021-05-22 10:57:16 +02:00
thermal thermal/core: Potential buffer overflow in thermal_build_list_of_policies() 2021-10-06 15:05:06 +02:00
thunderbolt thunderbolt: dma_port: Fix NVM read buffer bounds and offset issue 2021-06-03 08:36:15 +02:00
tty serial: core: Fix initializing and restoring termios speed 2021-11-26 11:40:24 +01:00
uio
usb USB: iowarrior: fix control-message timeouts 2021-11-26 11:40:26 +01:00
uwb
vfio vfio: Use config not menuconfig for VFIO_NOIOMMU 2021-09-22 11:45:26 +02:00
vhost vringh: Use wiov->used to check for read/write desc order 2021-09-03 09:56:25 +02:00
video video: fbdev: riva: Error out if 'pixclock' equals zero 2021-09-22 11:45:28 +02:00
virt
virtio virtio: write back F_VERSION_1 before validate 2021-10-20 10:42:04 +02:00
vlynq
vme
w1 w1: ds2438: fixing bug that would always get page0 2021-07-20 16:17:49 +02:00
watchdog watchdog: Fix OMAP watchdog early handling 2021-11-26 11:40:22 +01:00
xen xen/balloon: add late_initcall_sync() for initial ballooning done 2021-11-26 11:40:25 +01:00
zorro
Kconfig
Makefile