Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214833
b: refs/heads/master
c: f3d531b
h: refs/heads/master
i:
  214831: e246970
v: v3
  • Loading branch information
Tilman Schmidt authored and David S. Miller committed Oct 1, 2010
1 parent ded32d1 commit 98b9782
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: c8701a08d6a4efeae45d84d0aa87172f23b14e3c
refs/heads/master: f3d531b99fb30945b4a64d6e2e86e1e62605aca5
8 changes: 5 additions & 3 deletions trunk/drivers/isdn/gigaset/isocdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -842,13 +842,14 @@ static inline void trans_receive(unsigned char *src, unsigned count,

if (unlikely(bcs->ignore)) {
bcs->ignore--;
hdlc_flush(bcs);
return;
}
skb = bcs->rx_skb;
if (skb == NULL)
if (skb == NULL) {
skb = gigaset_new_rx_skb(bcs);
bcs->hw.bas->goodbytes += skb->len;
if (skb == NULL)
return;
}
dobytes = bcs->rx_bufsize - skb->len;
while (count > 0) {
dst = skb_put(skb, count < dobytes ? count : dobytes);
Expand All @@ -860,6 +861,7 @@ static inline void trans_receive(unsigned char *src, unsigned count,
if (dobytes == 0) {
dump_bytes(DEBUG_STREAM_DUMP,
"rcv data", skb->data, skb->len);
bcs->hw.bas->goodbytes += skb->len;
gigaset_skb_rcvd(bcs, skb);
skb = gigaset_new_rx_skb(bcs);
if (skb == NULL)
Expand Down

0 comments on commit 98b9782

Please sign in to comment.