aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/hdlc_ppp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wan/hdlc_ppp.c')
-rw-r--r--drivers/net/wan/hdlc_ppp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/hdlc_ppp.c b/drivers/net/wan/hdlc_ppp.c
index 72a7cdab4245..b9b9d6b01c0b 100644
--- a/drivers/net/wan/hdlc_ppp.c
+++ b/drivers/net/wan/hdlc_ppp.c
@@ -389,6 +389,7 @@ static void ppp_cp_parse_cr(struct net_device *dev, u16 pid, u8 id,
389 for (opt = data; len; len -= opt[1], opt += opt[1]) { 389 for (opt = data; len; len -= opt[1], opt += opt[1]) {
390 if (len < 2 || len < opt[1]) { 390 if (len < 2 || len < opt[1]) {
391 dev->stats.rx_errors++; 391 dev->stats.rx_errors++;
392 kfree(out);
392 return; /* bad packet, drop silently */ 393 return; /* bad packet, drop silently */
393 } 394 }
394 395