Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36757
b: refs/heads/master
c: 83e331e
h: refs/heads/master
i:
  36755: 778157d
v: v3
  • Loading branch information
Chuck Short authored and David S. Miller committed Sep 29, 2006
1 parent 09a0c93 commit 3c8abd1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 293b9c42511d800b5f7bb2acba50f3e584b8c410
refs/heads/master: 83e331e2a492a134e491bcf50c984fd50c7fae03
7 changes: 6 additions & 1 deletion trunk/drivers/net/irda/via-ircc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,13 @@ static int upload_rxdata(struct via_ircc_cb *self, int iobase)

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);
if ((skb == NULL) || ((len - 4) < 2)) {
if (skb == NULL) {
self->stats.rx_dropped++;
return FALSE;
}
Expand Down

0 comments on commit 3c8abd1

Please sign in to comment.