if c_skb == NULL we get a Kernel Oops when freeing it. This removes some nasty kernel oopses, and makes it possible to unload hfcmulti again.

This commit is contained in:
Chrisian Richter 2005-11-17 18:05:24 +00:00
parent c2ba762cc6
commit 01d5d96214
1 changed files with 2 additions and 1 deletions

View File

@ -431,7 +431,8 @@ do_broadcast(mISDNstack_t *st, struct sk_buff *skb)
__FUNCTION__, inst->id);
}
}
dev_kfree_skb(c_skb);
if (c_skb)
dev_kfree_skb(c_skb);
dev_kfree_skb(skb);
}