Searched hist:c0f53771ba45745e5870daf880127925c93f232f (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/net/ethernet/cavium/liquidio/ |
H A D | lio_vf_rep.c | c0f53771ba45745e5870daf880127925c93f232f Wed Nov 28 23:54:22 UTC 2018 Pan Bian <bianpan2016@163.com> 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>
|