From: Michael Buesch Date: Thu, 12 Jun 2008 09:58:56 +0000 (+0200) Subject: b43: Fix possible NULL pointer dereference in DMA code X-Git-Tag: v2.6.26-rc7~20^2~25^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=028118a5f09a9c807e6b43e2231efdff9f224c74;p=pandora-kernel.git b43: Fix possible NULL pointer dereference in DMA code 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 Signed-off-by: Michael Buesch Signed-off-by: John W. Linville --- Reading git-diff-tree failed