diff options
author | Pan Bian <bianpan2016@163.com> | 2018-11-29 02:54:22 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-01 04:20:39 +0300 |
commit | c0f53771ba45745e5870daf880127925c93f232f (patch) | |
tree | 98c4eaa140940837967a4128b6b69bf89f10bbd7 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ef6fcd455278c2be3032a346cc66d9dd9866b787 (diff) | |
download | linux-c0f53771ba45745e5870daf880127925c93f232f.tar.xz |
liquidio: read sc->iq_no before release sc
The function lio_vf_rep_packet_sent_callback releases the occupation of
sc via octeon_free_soft_command. sc should not be used after that.
Unfortunately, sc->iq_no is read. To fix this, the patch stores sc->iq_no
into a local variable before releasing sc and then uses the local variable
instead of sc->iq_no.
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions