diff options
| author | Nam Cao <namcaov@gmail.com> | 2022-10-25 11:12:26 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-10-31 09:08:30 +0100 |
| commit | 336ccc31cda111c830332d4b56def49c9c1d48e6 (patch) | |
| tree | 6796b56a9d70106f1272d1614cf131c6c171bd9d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | staging: rtl8712: check for return value of _r8712_init_xmit_priv() (diff) | |
| download | linux-336ccc31cda111c830332d4b56def49c9c1d48e6.tar.gz linux-336ccc31cda111c830332d4b56def49c9c1d48e6.zip | |
staging: rtl8712: fix potential memory leak
In r8712_init_drv_sw(), whenever any function call returns error, it is
returned immediately without properly cleaning up the other successfully
executed functions. This can cause memory leak.
Instead of return immediately, free all the allocated buffers first.
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Signed-off-by: Nam Cao <namcaov@gmail.com>
Link: https://lore.kernel.org/r/0a3414b12031f6cdcba81a8725e91eb9567ff34f.1666688642.git.namcaov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
