From: andrea merello Date: Sat, 22 Feb 2014 16:57:23 +0000 (+0100) Subject: rtl818x: check for pci_map_single() success when initializing RX ring X-Git-Tag: v3.15-rc1~113^2~159^2^2~100 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1da08dd721f53b97e792c749d236907c764932;p=pandora-kernel.git rtl818x: check for pci_map_single() success when initializing RX ring During initialization a number of RX skbs are allocated and mapped for DMA. Currently if pci_map_single() fails, it will result in passing to the HW a wrong DMA address (to write to!). This patch adds check for this condition and eventually causes the driver not to initialize, avoiding at least dangerous DMAs. Signed-off-by: Andrea Merello Signed-off-by: John W. Linville --- Reading git-diff-tree failed