On Tue, Feb 18, 2014 at 02:10:42AM +0100, Andrea Merello wrote: > From: andrea merello <andrea.merello@xxxxxxxxx> > > 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 detects this condition, eventually it tries to get a more > luky skb, and if it finally fails to get things right, it makes the > driver not to initialize, avoiding at least dangerous DMAs. > In normal life then why would pci_map_single() fail even once? (I am a newbie with this code so it is an honest question and not a rhetorical one). regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html