Wenwen Wang
80a4c81c67
firestream: fix memory leaks
...
[ Upstream commit fa865ba183d61c1ec8cbcab8573159c3b72b89a4 ]
In fs_open(), 'vcc' is allocated through kmalloc() and assigned to
'atm_vcc->dev_data.' In the following execution, if an error occurs, e.g.,
there is no more free channel, an error code EBUSY or ENOMEM will be
returned. However, 'vcc' is not deallocated, leading to memory leaks. Note
that, in normal cases where fs_open() returns 0, 'vcc' will be deallocated
in fs_close(). But, if fs_open() fails, there is no guarantee that
fs_close() will be invoked.
To fix this issue, deallocate 'vcc' before the error code is returned.
Signed-off-by: Wenwen Wang <[email protected] >
Signed-off-by: David S. Miller <[email protected] >
Signed-off-by: Greg Kroah-Hartman <[email protected] >
2020-01-29 16:45:19 +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
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
eni.c
net: Use skb_frag_off accessors
2019-07-30 14:21:32 -07:00
eni.h
firestream.c
firestream: fix memory leaks
2020-01-29 16:45:19 +01:00
firestream.h
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 37
2019-05-24 17:27:11 +02:00
fore200e.c
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 156
2019-05-30 11:26:35 -07:00
fore200e.h
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
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
idt77105.h
idt77252.c
atm: idt77252: Remove call to memset after dma_alloc_coherent
2019-07-15 11:06:27 -07:00
idt77252.h
idt77252_tables.h
iphase.c
atm: iphase: Fix Spectre v1 vulnerability
2019-08-02 17:30:36 -07: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
treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152
2019-05-30 11:26:32 -07:00
Makefile
midway.h
nicstar.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c
atm: Use dev_get_drvdata
2019-07-23 13:02:41 -07: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
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
uPD98402.h
zatm.c
treewide: Add SPDX license identifier for more missed files
2019-05-21 10:50:45 +02:00
zatm.h
zeprom.h