ruanjinjie
ee2715faf7
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
...
[ Upstream commit fd2c930cf6a5b9176382c15f9acb1996e76e25ad ]
If device_register() returns error in tifm_7xx1_switch_media(),
name of kobject which is allocated in dev_set_name() called in device_add()
is leaked.
Never directly free @dev after calling device_register(), even
if it returned an error! Always use put_device() to give up the
reference initialized.
Fixes: 2428a8fe22 ("tifm: move common device management tasks from tifm_7xx1 to tifm_core")
Signed-off-by: ruanjinjie <ruanjinjie@huawei.com>
Link: https://lore.kernel.org/r/20221117064725.3478402-1-ruanjinjie@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-01-18 11:41:24 +01:00
..
altera-stapl
c2port
cardreader
misc: rtsx: Fix an error handling path in rtsx_pci_probe()
2022-08-25 11:17:52 +02:00
cb710
cb710: avoid NULL pointer subtraction
2021-10-20 11:40:13 +02:00
cxl
cxl: Fix a memory leak in an error handling path
2022-08-25 11:18:34 +02:00
echo
eeprom
eeprom: ee1004: limit i2c reads to I2C_SMBUS_BLOCK_MAX
2022-02-16 12:52:52 +01:00
genwqe
habanalabs
habanalabs: Call put_pid() when releasing control device
2021-03-30 14:35:22 +02:00
ibmasm
misc/libmasm/module: Fix two use after free in ibmasm_init_one
2021-07-20 16:10:41 +02:00
lis3lv02d
platform/x86: hp_accel: Avoid invoking _INI to speed up resume
2021-06-03 08:59:08 +02:00
lkdtm
locking/refcount: Define constants for saturation and max refcount values
2022-07-29 17:14:16 +02:00
mei
mei: me: add Ice Lake-N device id.
2021-10-20 11:40:13 +02:00
mic
misc: vop: add round_up(x,4) for vring_size to avoid kernel panic
2020-10-29 09:58:04 +01:00
ocxl
misc: ocxl: fix possible name leak in ocxl_file_register_afu()
2023-01-18 11:41:23 +01:00
sgi-gru
sgi-xp
ti-st
vmw_vmci
misc/vmw_vmci: fix an infoleak in vmci_host_do_receive_datagram()
2022-11-25 17:42:20 +01:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel-ssc.c
misc: atmel-ssc: Fix IRQ check in ssc_probe
2022-06-22 14:11:22 +02:00
atmel_tclib.c
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c
misc: fastrpc: fix memory corruption on open
2022-09-15 12:04:51 +02:00
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
ics932s401: fix broken handling of errors when word reading fails
2021-05-26 12:05:20 +02:00
isl29003.c
isl29020.c
Kconfig
kgdbts.c
kgdbts: fix return value of __setup handler
2022-04-15 14:18:20 +02:00
lattice-ecp3-config.c
misc: lattice-ecp3-config: Fix task hung when firmware load failed
2022-01-27 09:19:39 +01:00
Makefile
pch_phub.c
pci_endpoint_test.c
phantom.c
pti.c
pvpanic.c
misc/pvpanic: Export module FDT device table
2021-03-17 17:03:52 +01:00
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c
misc: tifm: fix possible memory leak in tifm_7xx1_switch_media()
2023-01-18 11:41:24 +01:00
tifm_core.c
tsl2550.c
vexpress-syscfg.c
vmw_balloon.c
xilinx_sdfec.c