diff options
author | Simon Guinot <[email protected]> | 2015-07-19 13:00:53 +0200 |
---|---|---|
committer | David S. Miller <[email protected]> | 2015-07-21 00:30:02 -0700 |
commit | a84e32894191cfcbffa54180d78d7d4654d56c20 (patch) | |
tree | c4b8116863b0ac7636537c3de5306ce6bd170716 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | a7a6268590bdc6760df52570a1df41654e3096ba (diff) |
net: mvneta: fix refilling for Rx DMA buffers
With the actual code, if a memory allocation error happens while
refilling a Rx descriptor, then the original Rx buffer is both passed
to the networking stack (in a SKB) and let in the Rx ring. This leads
to various kernel oops and crashes.
As a fix, this patch moves Rx descriptor refilling ahead of building
SKB with the associated Rx buffer. In case of a memory allocation
failure, data is dropped and the original DMA buffer is put back into
the Rx ring.
Signed-off-by: Simon Guinot <[email protected]>
Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit")
Cc: <[email protected]> # v3.8+
Tested-by: Yoann Sculo <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions