diff options
author | Michael Buesch <mb@bu3sch.de> | 2008-06-12 11:58:56 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-06-13 16:14:48 -0400 |
commit | 028118a5f09a9c807e6b43e2231efdff9f224c74 (patch) | |
tree | 10ae9463691e3decc9bd4773682a35418cdf2b10 /drivers/net/wireless/b43/b43.h | |
parent | 051c256f672efa356a4cda1841132dbc86541090 (diff) |
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 <miles.lane@gmail.com>
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43/b43.h')
0 files changed, 0 insertions, 0 deletions