mirror of
https://github.com/proski/madwifi
synced 2024-11-21 22:11:32 +03:00
Add null check around dev_kfree_skb
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2875 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
parent
c676eeb444
commit
34a98e1501
@ -269,7 +269,8 @@ runtest(struct ieee80211com *ic, struct ciphertest *t)
|
||||
dumpdata("Plaintext", t->plaintext, t->plaintext_len);
|
||||
goto bad;
|
||||
}
|
||||
dev_kfree_skb(skb);
|
||||
if (skb != NULL)
|
||||
dev_kfree_skb(skb);
|
||||
ieee80211_crypto_delkey(ic, &key);
|
||||
printk("PASS\n");
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user