linux/drivers/atm
Zhipeng Lu df0965935a atm: idt77252: fix a memleak in open_card_ubr0
[ Upstream commit f3616173bf ]

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: 1da177e4c3 ("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-02-23 08:25:06 +01:00
..
.gitignore
adummy.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
ambassador.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37 2019-05-24 17:27:11 +02:00
ambassador.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37 2019-05-24 17:27:11 +02:00
atmtcp.c atm: fix atm_dev refcnt leaks in atmtcp_remove_persistent 2020-08-11 15:33:38 +02:00
eni.c atm: eni: Add check for dma_map_single 2022-03-23 09:12:07 +01:00
eni.h
firestream.c atm: firestream: check the return value of ioremap() in fs_init() 2022-03-19 13:40:17 +01:00
firestream.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37 2019-05-24 17:27:11 +02:00
fore200e.c fore200e: Fix incorrect checks of NULL pointer dereference 2020-02-24 08:36:36 +01:00
fore200e.h fore200e: devirtualize dma alloc calls 2018-10-10 22:38:50 -07:00
he.c atm: he: clean up an indentation issue 2019-09-25 13:54:45 +02:00
he.h
horizon.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37 2019-05-24 17:27:11 +02:00
horizon.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37 2019-05-24 17:27:11 +02:00
idt77105.c atm: idt77252: fix null-ptr-dereference 2021-03-30 14:35:21 +02:00
idt77105.h
idt77252_tables.h
idt77252.c atm: idt77252: fix a memleak in open_card_ubr0 2024-02-23 08:25:06 +01:00
idt77252.h
iphase.c atm: iphase: Do PCI error checks on own line 2023-11-28 16:50:15 +00:00
iphase.h
Kconfig Kconfig: Fix the reference to the IDT77105 Phy driver in the description of ATM_NICSTAR_USE_IDT77105 2019-08-19 18:15:18 -07:00
lanai.c atm: lanai: dont run lanai_dev_close if not open 2021-03-30 14:35:20 +02:00
Makefile
midway.h
nicstar.c atm: nicstar: register the interrupt handler in the right place 2021-07-19 08:53:12 +02:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c atm: solos-pci: Fix potential deadlock on &tx_queue_lock 2023-12-20 15:41:15 +01:00
suni.c treewide: Add SPDX license identifier for more missed files 2019-05-21 10:50:45 +02:00
suni.h
tonga.h
uPD98401.h
uPD98402.c atm: uPD98402: fix incorrect allocation 2021-03-30 14:35:21 +02:00
uPD98402.h
zatm.c treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
zatm.h
zeprom.h