diff options
author | 2022-10-01 01:57:25 +0800 | |
---|---|---|
committer | 2022-10-03 12:47:42 +0100 | |
commit | 12aece8b01507a2d357a1861f470e83621fbb6f2 (patch) | |
tree | bb9bc5292f1be8f5ea9513c2ba198c481e905968 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | bnx2x: fix potential memory leak in bnx2x_tpa_stop() (diff) | |
download | wireguard-linux-12aece8b01507a2d357a1861f470e83621fbb6f2.tar.xz wireguard-linux-12aece8b01507a2d357a1861f470e83621fbb6f2.zip |
eth: sp7021: fix use after free bug in spl2sw_nvmem_get_mac_address
This frees "mac" and tries to display its address as part of the error
message on the next line. Swap the order.
Fixes: fd3040b9394c ("net: ethernet: Add driver for Sunplus SP7021")
Signed-off-by: Zheng Wang <zyytlz.wz@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions