Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200533
b: refs/heads/master
c: 63b88b9
h: refs/heads/master
i:
  200531: 4250236
v: v3
  • Loading branch information
Anton Vorontsov authored and David S. Miller committed Jun 17, 2010
1 parent f5705b5 commit c3848be
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 099473c16bac7b936994bc95b5fd96f36397e1ad
refs/heads/master: 63b88b9041ceef8217f34de71a2e96f0c3f0fd3b
4 changes: 4 additions & 0 deletions trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -2655,6 +2655,10 @@ int gfar_clean_rx_ring(struct gfar_priv_rx_q *rx_queue, int rx_work_limit)
dma_unmap_single(&priv->ofdev->dev, bdp->bufPtr,
priv->rx_buffer_size, DMA_FROM_DEVICE);

if (unlikely(!(bdp->status & RXBD_ERR) &&
bdp->length > priv->rx_buffer_size))
bdp->status = RXBD_LARGE;

/* We drop the frame if we failed to allocate a new buffer */
if (unlikely(!newskb || !(bdp->status & RXBD_LAST) ||
bdp->status & RXBD_ERR)) {
Expand Down

0 comments on commit c3848be

Please sign in to comment.