liquidio: Avoid accessing skb after submitting to input queue
authorSatanand Burla <satananda.burla@cavium.com>
Thu, 26 Jan 2017 19:52:35 +0000 (11:52 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 20:42:18 +0000 (15:42 -0500)
commit80c8eae6ee66b52e1304c9ffd02b4472d5976608
treeda38ce8ca20632bee3bab5b34443fe7632d9b879
parent49b3eb772505dc42b61c2920ca777d55455a8ee4
liquidio: Avoid accessing skb after submitting to input queue

Accessing skb after submitting to input queue can cause
access to stale pointers if the skb ends up being transmitted
and freed by that time.

Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Derek Chickles <derek.chickles@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c
drivers/net/ethernet/cavium/liquidio/lio_vf_main.c