Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186807
b: refs/heads/master
c: 8d03847
h: refs/heads/master
i:
  186805: 2584f46
  186803: 5e9aadd
  186799: 7ccd547
v: v3
  • Loading branch information
Andrew Lunn authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent b504176 commit 5b5b15c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 837b8248f6206a6b08b3d6defe2946282e432679
refs/heads/master: 8d03847c090b12694fb9fa81dbefa7b3e4f10f1d
9 changes: 4 additions & 5 deletions trunk/drivers/staging/batman-adv/routing.c
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,6 @@ int recv_vis_packet(struct sk_buff *skb)
struct vis_packet *vis_packet;
struct ethhdr *ethhdr;
int hdr_size = sizeof(struct vis_packet);
int ret;

if (skb_headlen(skb) < hdr_size)
return NET_RX_DROP;
Expand All @@ -962,18 +961,18 @@ int recv_vis_packet(struct sk_buff *skb)
case VIS_TYPE_SERVER_SYNC:
/* TODO: handle fragmented skbs properly */
receive_server_sync_packet(vis_packet, skb_headlen(skb));
ret = NET_RX_SUCCESS;
break;

case VIS_TYPE_CLIENT_UPDATE:
/* TODO: handle fragmented skbs properly */
receive_client_update_packet(vis_packet, skb_headlen(skb));
ret = NET_RX_SUCCESS;
break;

default: /* ignore unknown packet */
ret = NET_RX_DROP;
break;
}
return ret;

/* We take a copy of the data in the packet, so we should
always free the skbuf. */
return NET_RX_DROP;
}

0 comments on commit 5b5b15c

Please sign in to comment.