diff options
| author | Wenwen Wang <wenwen@cs.uga.edu> | 2019-08-14 13:03:38 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-09-10 10:29:47 +0100 |
| commit | 2d28afe7a79edf0f2afd1005d9c2a83fab1a1ab6 (patch) | |
| tree | 68e70d1d7df67f1ae766c47655daab2a84add46a /scripts/gdb/linux/lists.py | |
| parent | f6f3170c57da89158b1aa920fc547f481d278480 (diff) | |
cx82310_eth: fix a memory leak bug
[ Upstream commit 1eca92eef18719027d394bf1a2d276f43e7cf886 ]
In cx82310_bind(), 'dev->partial_data' is allocated through kmalloc().
Then, the execution waits for the firmware to become ready. If the firmware
is not ready in time, the execution is terminated. However, the allocated
'dev->partial_data' is not deallocated on this path, leading to a memory
leak bug. To fix this issue, free 'dev->partial_data' before returning the
error.
Signed-off-by: Wenwen Wang <wenwen@cs.uga.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions
