Commit 1f459262 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Felipe Balbi
Browse files

usb: gadget: udc: remove pointer dereference after free

Remove pointer dereference after free.

Addresses-Coverity-ID: 1091173
Acked-by: default avatarMichal Nazarewicz <>
Signed-off-by: default avatarGustavo A. R. Silva <>
Signed-off-by: default avatarFelipe Balbi <>
parent 16bb05d9
......@@ -1523,7 +1523,6 @@ static void pch_udc_free_dma_chain(struct pch_udc_dev *dev,
td = phys_to_virt(addr);
addr2 = (dma_addr_t)td->next;
pci_pool_free(dev->data_requests, td, addr);
td->next = 0x00;
addr = addr2;
req->chain_len = 1;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment