aboutsummaryrefslogtreecommitdiffstats
path: root/net/phonet/pep.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-10-04 14:56:38 -0400
committerDavid S. Miller <davem@davemloft.net>2010-10-04 14:56:38 -0400
commit21a180cda012e1f93e362dd4a9b0bfd3d8c92940 (patch)
tree0e0d10baa3fdcd8ffbc6881076ff1695808dad9d /net/phonet/pep.c
parentc7d4426a98a5f6654cd0b4b33d9dab2e77192c18 (diff)
parent51e97a12bef19b7e43199fc153cf9bd5f2140362 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: net/ipv4/Kconfig net/ipv4/tcp_timer.c
Diffstat (limited to 'net/phonet/pep.c')
-rw-r--r--net/phonet/pep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/phonet/pep.c b/net/phonet/pep.c
index 552fb665645f..aa3d8700d213 100644
--- a/net/phonet/pep.c
+++ b/net/phonet/pep.c
@@ -507,12 +507,13 @@ static void pipe_grant_credits(struct sock *sk)
507static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb) 507static int pipe_rcv_status(struct sock *sk, struct sk_buff *skb)
508{ 508{
509 struct pep_sock *pn = pep_sk(sk); 509 struct pep_sock *pn = pep_sk(sk);
510 struct pnpipehdr *hdr = pnp_hdr(skb); 510 struct pnpipehdr *hdr;
511 int wake = 0; 511 int wake = 0;
512 512
513 if (!pskb_may_pull(skb, sizeof(*hdr) + 4)) 513 if (!pskb_may_pull(skb, sizeof(*hdr) + 4))
514 return -EINVAL; 514 return -EINVAL;
515 515
516 hdr = pnp_hdr(skb);
516 if (hdr->data[0] != PN_PEP_TYPE_COMMON) { 517 if (hdr->data[0] != PN_PEP_TYPE_COMMON) {
517 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP type: %u\n", 518 LIMIT_NETDEBUG(KERN_DEBUG"Phonet unknown PEP type: %u\n",
518 (unsigned)hdr->data[0]); 519 (unsigned)hdr->data[0]);