summaryrefslogtreecommitdiff
path: root/bpfc
diff options
context:
space:
mode:
Diffstat (limited to 'bpfc')
0 files changed, 0 insertions, 0 deletions
ref='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&id=55f058e7574c3615dea4615573a19bdb258696c6'>55f058e7574c3615dea4615573a19bdb258696c6 (diff)
s390/pci: fix use after free in dma_init
After a failure during registration of the dma_table (because of the function being in error state) we free its memory but don't reset the associated pointer to zero. When we then receive a notification from firmware (about the function being in error state) we'll try to walk and free the dma_table again. Fix this by resetting the dma_table pointer. In addition to that make sure that we free the iommu_bitmap when appropriate. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Reviewed-by: Gerald Schaefer <gerald.schaefer@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat