]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8180: Add error check for pci_map_single return value in TX path
authorandrea.merello <andrea.merello@gmail.com>
Wed, 5 Feb 2014 21:38:06 +0000 (22:38 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 6 Feb 2014 19:35:53 +0000 (14:35 -0500)
commit3484e8728e847e21e4955199b9481339f9338ca1
tree150c5d381aa5e34986d0f99b7a9ee4e095cb150b
parent6d238579f61bbd03c47b24930bfa2a84261e0021
rtl8180: Add error check for pci_map_single return value in TX path

Orignal code will not detect a DMA mapping failure, causing the HW
to attempt a DMA from an invalid address.

This patch add the error check and eventually simply drops the TX
packet if we can't map it for DMA.

Signed-off-by: andrea merello <andrea.merello@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8180/dev.c