linux-stable/drivers/atm
Zhipeng Lu f3616173bf atm: idt77252: fix a memleak in open_card_ubr0
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>
2024-02-03 12:46:13 +00:00
..
.gitignore
Kconfig
Makefile
adummy.c
atmtcp.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
eni.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
eni.h
fore200e.c atm: fore200e: Drop unnecessary of_match_device() 2023-10-10 12:41:17 +02:00
fore200e.h
he.c
he.h
idt77105.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
idt77105.h
idt77252.c atm: idt77252: fix a memleak in open_card_ubr0 2024-02-03 12:46:13 +00:00
idt77252.h
idt77252_tables.h
iphase.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
iphase.h
lanai.c
midway.h
nicstar.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08: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-09 21:17:45 +00:00
suni.c net: fill in MODULE_DESCRIPTION()s for ATM 2024-01-05 08:04:23 -08:00
suni.h
tonga.h
zeprom.h