kernel_samsung_a53x/drivers
Zhipeng Lu afe12a6ecf atm: idt77252: fix a memleak in open_card_ubr0
[ Upstream commit f3616173bf9be9bf39d131b120d6eea4e6324cb5 ]

When alloc_scq fails, card->vcs[0] (i.e. vc) should be freed. Otherwise,
in the following call chain:

idt77252_init_one
  |-> idt77252_dev_open
        |-> open_card_ubr0
              |-> alloc_scq [failed]
  |-> deinit_card
        |-> vfree(card->vcs);

card->vcs is freed and card->vcs[0] is leaked.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:13:24 +01:00
..
accessibility
acpi ACPI: APEI: set memory failure flags as MF_ACTION_REQUIRED on synchronous events 2024-11-18 12:13:09 +01:00
amba
android binder: fix race between mmput() and do_exit() 2024-11-18 12:12:45 +01:00
ata scsi: core: Introduce enum scsi_disposition 2024-11-18 12:13:21 +01:00
atm atm: idt77252: fix a memleak in open_card_ubr0 2024-11-18 12:13:24 +01:00
auxdisplay
base PM: sleep: Fix error handling in dpm_prepare() 2024-11-18 12:13:23 +01:00
battery
bcma
block block/rnbd-srv: Check for unlikely string overflow 2024-11-18 12:13:13 +01:00
bluetooth Bluetooth: qca: Set both WIDEBAND_SPEECH and LE_STATES quirks for QCA2066 2024-11-18 12:13:17 +01:00
bts
bus bus: mhi: host: Drop chan lock before queuing buffers 2024-11-18 12:12:56 +01:00
cdrom
char hwrng: core - Fix page fault dead lock on mmap-ed hwrng 2024-11-18 12:12:55 +01:00
clk clk: mmp: pxa168: Fix memory leak in pxa168_clk_init() 2024-11-18 12:13:18 +01:00
clocksource
connector
counter
cpufreq cpufreq: scmi: process the result of devm_of_clk_add_hw_provider() 2024-11-18 12:12:24 +01:00
cpuidle
crypto crypto: stm32/crc32 - fix parsing list of devices 2024-11-18 12:13:10 +01:00
dax
dca
devfreq PM / devfreq: Synchronize devfreq_monitor_[start/stop] 2024-11-18 12:13:09 +01:00
dio
dma dmaengine: fsl-qdma: Fix a memory leak related to the queue command DMA 2024-11-18 12:13:23 +01:00
dma-buf
edac EDAC/thunderx: Fix possible out-of-bounds string access 2024-11-18 12:12:19 +01:00
eisa
extcon
fingerprint
firewire firewire: ohci: suppress unexpected system reboot in AMD Ryzen machines and ASM108x/VT630x PCIe cards 2024-11-18 12:12:08 +01:00
firmware firmware: meson_sm: populate platform devices from sm device tree data 2024-11-18 12:12:28 +01:00
fpga
fsi
gnss
gpio gpio: eic-sprd: Clear interrupt after set the interrupt type 2024-11-18 12:13:07 +01:00
gpu drm/msm/dp: return correct Colorimetry for DP_TEST_DYNAMIC_RANGE_CEA case 2024-11-18 12:13:24 +01:00
greybus
gud
hid HID: apple: Add 2021 magic keyboard FN key mapping 2024-11-18 12:13:23 +01:00
hsi
hv
hwmon
hwspinlock
hwtracing coresight: etm4x: Fix width of CCITMIN field 2024-11-18 12:12:19 +01:00
i2c i2c: s3c24xx: fix transferring more than one message in polling mode 2024-11-18 12:12:52 +01:00
i3c i3c: master: cdns: Update maximum prescaler value for i2c clock 2024-11-18 12:13:19 +01:00
ide
idle
ifconn
iio iio:adc:ad7091r: Move exports into IIO_AD7091R namespace. 2024-11-18 12:12:55 +01:00
infiniband IB/ipoib: Fix mcast list locking 2024-11-18 12:13:18 +01:00
input Input: atkbd - use ab83 as id when skipping the getid command 2024-11-18 12:12:44 +01:00
interconnect interconnect: Treat xlate() returning NULL node as an error 2024-11-18 12:12:00 +01:00
iommu iommu/arm-smmu-qcom: Add missing GMU entry to match table 2024-11-18 12:12:47 +01:00
ipack
irqchip
isdn
kperfmon
kq/mesh
leds leds: trigger: panic: Don't register panic notifier if creating the trigger failed 2024-11-18 12:13:19 +01:00
lightnvm
macintosh
mailbox
mcb
md md: Whenassemble the array, consult the superblock of the freshest device 2024-11-18 12:13:14 +01:00
media media: ddbridge: fix an error code problem in ddb_probe 2024-11-18 12:13:18 +01:00
memory
memstick
message
mfd mfd: ti_am335x_tscadc: Fix TI SoC dependencies 2024-11-18 12:13:19 +01:00
misc
mmc mmc: mmc_spi: remove custom DMA mapped buffers 2024-11-18 12:12:58 +01:00
most
mtd mtd: Fix gluebi NULL pointer dereference caused by ftl notifier 2024-11-18 12:12:25 +01:00
muic
mux
net net: stmmac: xgmac: fix handling of DPP safety error for DMA channels 2024-11-18 12:13:24 +01:00
nfc
ntb
nubus
nvdimm
nvme nvmet-tcp: Fix the H2C expected PDU len calculation 2024-11-18 12:12:50 +01:00
nvmem
of of: unittest: Fix of_count_phandle_with_args() expected value message 2024-11-18 12:12:43 +01:00
opp
oprofile
parisc
parport parport: parport_serial: Add Brainboxes device IDs and geometry 2024-11-18 12:12:19 +01:00
pci PCI/AER: Decode Requester ID when no error info found 2024-11-18 12:13:20 +01:00
pcmcia
perf
phy phy: ti: phy-omap-usb2: Fix NULL pointer dereference for SRP 2024-11-18 12:13:24 +01:00
pinctrl pinctrl: lochnagar: Don't build on MIPS 2024-11-18 12:12:11 +01:00
platform
pnp PNP: ACPI: fix fortify warning 2024-11-18 12:13:09 +01:00
power power: supply: cw2015: correct time_to_empty units in sysfs 2024-11-18 12:12:49 +01:00
powercap
pps
ps3
ptp
pwm pwm: jz4740: Don't use dev_err_probe() in .request() 2024-11-18 12:12:47 +01:00
rapidio
ras
regulator regulator: core: Only increment use_count when enable_count changes 2024-11-18 12:13:08 +01:00
remoteproc
reset reset: hisilicon: hi6220: fix Wvoid-pointer-to-enum-cast warning 2024-11-18 12:12:16 +01:00
rpmsg rpmsg: virtio: Free driver_override when rpmsg_remove() 2024-11-18 12:12:56 +01:00
rtc rtc: Adjust failure return code for cmos_set_alarm() 2024-11-18 12:12:58 +01:00
s390 s390/scm: fix virtual vs physical address confusion 2024-11-18 12:12:16 +01:00
samsung
sbus
scsi scsi: core: Move scsi_host_busy() out of host lock for waking up EH handler 2024-11-18 12:13:21 +01:00
sensorhub
sensors
sfi
sh
siox
slimbus
soc
soundwire soundwire: stream: fix NULL pointer dereference for multi_link 2024-11-18 12:11:57 +01:00
spi spi: bcm-qspi: fix SFDP BFPT read by usig mspi read 2024-11-18 12:13:07 +01:00
spmi
spu_verify
ssb
staging media: rkisp1: Disable runtime PM in probe error path 2024-11-18 12:12:40 +01:00
sti
target
tc
tee
thermal
thunderbolt
tty tty: allow TIOCSLCKTRMIOS with CAP_CHECKPOINT_RESTORE 2024-11-18 12:13:20 +01:00
uh
uio uio: Fix use-after-free in uio_open 2024-11-18 12:12:19 +01:00
usb usb: hub: Replace hardcoded quirk value with BIT() macro 2024-11-18 12:13:20 +01:00
vdpa
vfio
vhost
vibrator
video fbdev: flush deferred work in fb_deferred_io_fsync() 2024-11-18 12:12:47 +01:00
virt
virtio
vision
vision3
visorbus
vlynq
vme
w1
watchdog watchdog: it87_wdt: Keep WDTCTRL bit 3 unmodified for IT8784/IT8786 2024-11-18 12:13:19 +01:00
xen xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import 2024-11-18 12:13:19 +01:00
zorro
Kconfig
Kconfig.variant1
Makefile
Makefile.variant1