Commit a9d13782 authored by Alessandro Rubini's avatar Alessandro Rubini

modules: nic: check a skb before using it

parent e6c0f208
......@@ -414,6 +414,10 @@ static void wrn_tx_interrupt(struct wrn_dev *wrn)
return; /* no more */
skb = wrn->skb_desc[i].skb;
if (!skb) {
pr_err("no socket in descriptor %i\n");
return;
}
info = skb_shinfo(skb);
if (info->tx_flags & SKBTX_HW_TSTAMP) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment