]> git.baikalelectronics.ru Git - kernel.git/commit
net: systemport: fix DMA allocation/freeing sizes
authorFlorian Fainelli <f.fainelli@gmail.com>
Fri, 31 Oct 2014 22:51:34 +0000 (15:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 1 Nov 2014 19:13:56 +0000 (15:13 -0400)
commit0197d92ed79c0bea8e0fe17b22526410051a2fbf
treecc5b2c29efc931d120c411f3a5cf2825eaf2c5df
parentba03b8f200e805f3a718f01399ec84ccf865af9a
net: systemport: fix DMA allocation/freeing sizes

We should not be allocating a single byte of DMA coherent memory, but
instead a full-sized struct dma_desc (8 bytes).

Fixes: 9b2572ce82c3 ("net: systemport: add Broadcom SYSTEMPORT Ethernet MAC driver")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bcmsysport.c