Commit 83e331e2 authored by Chuck Short's avatar Chuck Short Committed by David S. Miller
parent 293b9c42
...@@ -1223,8 +1223,13 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase) ...@@ -1223,8 +1223,13 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase)
IRDA_DEBUG(2, "%s(): len=%x\n", __FUNCTION__, len); IRDA_DEBUG(2, "%s(): len=%x\n", __FUNCTION__, len);
if ((len - 4) < 2) {
self->stats.rx_dropped++;
return FALSE;
}
skb = dev_alloc_skb(len + 1); skb = dev_alloc_skb(len + 1);
if ((skb == NULL) || ((len - 4) < 2)) { if (skb == NULL) {
self->stats.rx_dropped++; self->stats.rx_dropped++;
return FALSE; return FALSE;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment