projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86ffdbe
)
Set skb->dev before calling netif_rx().
author
Ben Pfaff
<blp@nicira.com>
Tue, 8 Jul 2008 20:46:14 +0000
(13:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Fri, 18 Jul 2008 20:42:37 +0000
(13:42 -0700)
Fixes null pointer dereference reported by David Erickson
<derickso@stanford.edu>.
datapath/dp_dev.c
patch
|
blob
|
history
diff --git
a/datapath/dp_dev.c
b/datapath/dp_dev.c
index 48981376c3d1ab7fcecefa33b5ddec16e1b8678a..e618d71882365594dbc66683d59897681daaf348 100644
(file)
--- a/
datapath/dp_dev.c
+++ b/
datapath/dp_dev.c
@@
-27,6
+27,7
@@
int dp_dev_recv(struct net_device *netdev, struct sk_buff *skb)
{
int len = skb->len;
struct dp_dev *dp_dev = dp_dev_priv(netdev);
+ skb->dev = netdev;
skb->pkt_type = PACKET_HOST;
skb->protocol = eth_type_trans(skb, netdev);
if (in_interrupt())