aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-09-13 21:24:05 +0800
committerGreg Kroah-Hartman <[email protected]>2022-09-24 13:08:44 +0200
commitf44641bfc4e81fb2f37a92fb13afdc7c63c9114b (patch)
treebaf836e2652bdffa833370af8908eb963f834888 /scripts/bpf_doc.py
parentf63ed6cf93014c7fac56d82069801a26ab8b04a6 (diff)
staging: r8188eu: fix potential memory leak in _rtw_init_xmit_priv()
In _rtw_init_xmit_priv(), there are several error paths for allocation failures just jump to the `exit` section. However, there is no action will be performed, so the allocated resources are not properly released, which leads to various memory leaks. To properly release them, this patch unifies the error handling code and several error handling paths are added. According to the allocation sequence, if the validation fails, it will jump to its corresponding error tag to release the resources. Tested-by: Philipp Hortmann <[email protected]> # Edimax N150 Signed-off-by: Xiaoke Wang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions