diff options
Diffstat (limited to 'net/caif/chnl_net.c')
| -rw-r--r-- | net/caif/chnl_net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/caif/chnl_net.c b/net/caif/chnl_net.c index 1a3398a89aee..649ebacaf6bc 100644 --- a/net/caif/chnl_net.c +++ b/net/caif/chnl_net.c | |||
| @@ -83,10 +83,11 @@ static int chnl_recv_cb(struct cflayer *layr, struct cfpkt *pkt) | |||
| 83 | if (!priv) | 83 | if (!priv) |
| 84 | return -EINVAL; | 84 | return -EINVAL; |
| 85 | 85 | ||
| 86 | skb = (struct sk_buff *) cfpkt_tonative(pkt); | ||
| 87 | |||
| 86 | /* Get length of CAIF packet. */ | 88 | /* Get length of CAIF packet. */ |
| 87 | pktlen = cfpkt_getlen(pkt); | 89 | pktlen = skb->len; |
| 88 | 90 | ||
| 89 | skb = (struct sk_buff *) cfpkt_tonative(pkt); | ||
| 90 | /* Pass some minimum information and | 91 | /* Pass some minimum information and |
| 91 | * send the packet to the net stack. | 92 | * send the packet to the net stack. |
| 92 | */ | 93 | */ |
