diff options
| author | Larry Finger <Larry.Finger@lwfinger.net> | 2021-08-06 16:32:35 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-10 12:09:50 +0200 |
| commit | dfac77baa2837a9a4ac66015234854ebccb85bf1 (patch) | |
| tree | d438d6d3bcb8ba48fbf9ccbb090859b3bc489be8 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 859c57f606c78cb8b33cabbd22ad1d4ff9f80e4e (diff) | |
| download | linux-dfac77baa2837a9a4ac66015234854ebccb85bf1.tar.gz linux-dfac77baa2837a9a4ac66015234854ebccb85bf1.zip | |
staging: r8188eu: Fix potential memory leak or NULL dereference
In routine c2h_wk_callback(() following a kmalloc() call, the
error recovery is flawed. If the kmalloc() returns a pointer
that is not NULL, and the following c2h_evt_read() fails, the
code will leak that buffer. If the kmalloc() fails, a NULL
dereference will occur in the following code.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20210806213235.22349-1-Larry.Finger@lwfinger.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
