qti_sdio_client: Free rx DMA buffers after use

Free rx DMA buffere after the data is read from the buffer.

Change-Id: I2b8f97beb50b4752674fc8b4034feb84d2a36302
Signed-off-by: Amandeep Singh <amansing@codeaurora.org>
This commit is contained in:
Amandeep Singh 2019-08-27 11:00:56 +05:30
parent 52ad57ba4e
commit b47bd8b9e7

View file

@ -975,6 +975,7 @@ static void data_avail_worker(struct kthread_work *work)
wake_up(&qsb->wait_q);
wait_for_completion(&read_complete);
kfree(data_node->rx_dma_buf);
kfree(data_node);
spin_lock(&list_lock);
}