[MTHCA] bugfix: alloc_dma_mem leaves the output structure partly initialized on error...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 17 Jun 2007 17:46:00 +0000 (17:46 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Sun, 17 Jun 2007 17:46:00 +0000 (17:46 +0000)
commitdab11a8fd76f0233397a9ef39e99570d307baf9b
tree5e4664f96f704d75d8a6764bab6b4e6fe51e4b3b
parent4a2ee8e62cc2c94fe946fe3e681af55b36b23966
[MTHCA] bugfix: alloc_dma_mem leaves the output structure partly initialized on error, which causes crash on free_dma_mem.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@713 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86
hw/mthca/kernel/mt_memory.c
hw/mthca/kernel/mt_memory.h