aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2015-07-22 01:31:59 +0300
committerDavid S. Miller <davem@davemloft.net>2015-07-21 22:34:27 -0700
commitd8b48911fd249bc1a3431a9515619403c96d6af3 (patch)
tree8c2c420f08b034b03499ac9d8a0dd27d73f0a6ab /net/ipv4
parentnet: phy: dp83867: Fix warning check for setting the internal delay (diff)
downloadlinux-dev-d8b48911fd249bc1a3431a9515619403c96d6af3.tar.xz
linux-dev-d8b48911fd249bc1a3431a9515619403c96d6af3.zip
ravb: fix ring memory allocation
The driver is written as if it can adapt to a low memory situation allocating less RX skbs and TX aligned buffers than the respective RX/TX ring sizes. In reality though the driver would malfunction in this case. Stop being overly smart and just fail in such situation -- this is achieved by moving the memory allocation from ravb_ring_format() to ravb_ring_init(). We leave dma_map_single() calls in place but make their failure non-fatal by marking the corresponding RX descriptors with zero data size which should prevent DMA to an invalid addresses. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
0 files changed, 0 insertions, 0 deletions