Skip to content

Commit

Permalink
Merge branch 'bcmgenet-Fragmented-SKB-corrections'
Browse files Browse the repository at this point in the history
Doug Berger says:

====================
bcmgenet: Fragmented SKB corrections

Two issues were observed in a review of the bcmgenet driver support for
fragmented SKBs which are addressed by this patch set.

The first addresses a problem that could occur if the driver is not able
to DMA map a fragment of the SKB.  This would be a highly unusual event
but it would leave the hardware descriptors in an invalid state which
should be prevented.

The second is a hazard that could occur if the driver is able to reclaim
the first control block of a fragmented SKB before all of its fragments
have completed processing by the hardware.  In this case the SKB could
be freed leading to reuse of memory that is still in use by hardware.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Jul 16, 2017
2 parents ea6c307 + f48bed1 commit 533da29
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 149 deletions.
Loading

0 comments on commit 533da29

Please sign in to comment.