On Thu, Jun 12, 2008 at 11:58 AM, Michael Buesch <mb@xxxxxxxxx> wrote: > This fixes a possible NULL pointer dereference in an error path of the > DMA allocation error checking code. This is also necessary for a future > DMA API change that is on its way into the mainline kernel that adds > an additional dev parameter to dma_mapping_error(). > > This patch moves the whole struct b43_dmaring struct initialization > right before any DMA allocation operation. > Reported-by: Miles Lane <miles.lane@xxxxxxxxx> > Signed-off-by: Michael Buesch <mb@xxxxxxxxx> Thanks :-) Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036 -- 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