diff options
| author | Michael Buesch <[email protected]> | 2008-06-12 11:58:56 +0200 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2008-06-13 16:14:48 -0400 |
| commit | 028118a5f09a9c807e6b43e2231efdff9f224c74 (patch) | |
| tree | 10ae9463691e3decc9bd4773682a35418cdf2b10 /Documentation/filesystems/configfs/configfs_example.c | |
| 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 <[email protected]>
Signed-off-by: Michael Buesch <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'Documentation/filesystems/configfs/configfs_example.c')
0 files changed, 0 insertions, 0 deletions