diff options
author | Pan Bian <[email protected]> | 2019-11-05 22:49:11 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2019-11-05 17:50:21 +0100 |
commit | b7aa39a2ed0112d07fc277ebd24a08a7b2368ab9 (patch) | |
tree | 6bffb68a218804d4902b2bb39dbcae885d540a22 /tools/perf/scripts/python | |
parent | 78ce93f3e80bf8dff320a6d084c9933e81aa4a3f (diff) |
staging: rtl8192e: fix potential use after free
The variable skb is released via kfree_skb() when the return value of
_rtl92e_tx is not zero. However, after that, skb is accessed again to
read its length, which may result in a use after free bug. This patch
fixes the bug by moving the release operation to where skb is never
used later.
Signed-off-by: Pan Bian <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Cc: stable <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions