diff options
author | Dan Carpenter <[email protected]> | 2023-10-27 15:19:01 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-11-01 22:26:04 -0700 |
commit | 876f8ab52363f649bcc74072157dfd7adfbabc0d (patch) | |
tree | 4ddaeb45f1799c128db39176b335933a9f483f7e /tools/perf/scripts/python/task-analyzer.py | |
parent | 7b3ba18703a63f6fd487183b9262b08e5632da1b (diff) |
hsr: Prevent use after free in prp_create_tagged_frame()
The prp_fill_rct() function can fail. In that situation, it frees the
skb and returns NULL. Meanwhile on the success path, it returns the
original skb. So it's straight forward to fix bug by using the returned
value.
Fixes: 451d8123f897 ("net: prp: add packet handling support")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Paolo Abeni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions