]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00170784 - FEC : dma skb buffer map is not used rightly.
authorFugang Duan <B38611@freescale.com>
Wed, 21 Dec 2011 10:32:11 +0000 (18:32 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:10:26 +0000 (14:10 +0200)
commit55c3eb9962498403d5a7974843f00bb366674206
treeae3b777d2b5b2f0ea543f0f768932c772e0ea2b2
parent510b776645f0c854ee740ff75e999d786d55fcfe
ENGR00170784 - FEC : dma skb buffer map is not used rightly.

Enable "CONFIG_DMA_API_DEBUG" in kernel, and system print:

DMA-API: device driver tries to free DMA memory it has not
allocated [device address=0x0000000046688020]...[<80222494>]
(debug_dma_unmap_page+0x8c/0x98) from [<802a36a0>]
(fec_enet_interrupt+0x430/0x5ac)

Correct the usage of "dma_map_single" function.

Signed-off-by: Fugang Duan <B38611@freescale.com>
drivers/net/fec.c