diff options
author | David S. Miller <davem@nuts.ninka.net> | 2003-10-06 12:58:15 -0700 |
---|---|---|
committer | David S. Miller <davem@nuts.ninka.net> | 2003-10-06 12:58:15 -0700 |
commit | ba0c53547c4f2f0ffadd7c339cf7cfdf0da19785 (patch) | |
tree | 25b5d98f52f609c97e4d583a676fa14b4ae41935 /net/lapb/lapb_in.c | |
parent | 72570ff1d3499a7b05c78b7a9a15d4aec92dcd3f (diff) |
[LAPB]: Fix packet handlers to be PKT_CAN_SHARE_SKB.
Diffstat (limited to 'net/lapb/lapb_in.c')
-rw-r--r-- | net/lapb/lapb_in.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/lapb/lapb_in.c b/net/lapb/lapb_in.c index 431c6918aaf0..2275e15a9719 100644 --- a/net/lapb/lapb_in.c +++ b/net/lapb/lapb_in.c @@ -702,7 +702,10 @@ void lapb_data_input(struct lapb_cb *lapb, struct sk_buff *skb) { struct lapb_frame frame; - lapb_decode(lapb, skb, &frame); + if (lapb_decode(lapb, skb, &frame) < 0) { + kfree_skb(skb); + return; + } switch (lapb->state) { case LAPB_STATE_0: |