[PATCH v3] drivers: dma-mapping: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-05-25 Thread Catalin Marinas
The dma_common_pages_remap() function allocates a vm_struct object and initialises the pages pointer to value passed as argument. However, when this function is called dma_common_contiguous_remap(), the pages array is only temporarily allocated, being freed shortly after

[PATCH v3] drivers: dma-mapping: Do not leave an invalid area->pages pointer in dma_common_contiguous_remap()

2017-05-25 Thread Catalin Marinas
The dma_common_pages_remap() function allocates a vm_struct object and initialises the pages pointer to value passed as argument. However, when this function is called dma_common_contiguous_remap(), the pages array is only temporarily allocated, being freed shortly after