usb: gadget: udc: remove pointer dereference after free
Remove pointer dereference after free. Addresses-Coverity-ID: 1091173 Acked-by: Michal Nazarewicz <mina86@mina86.com> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
parent
16bb05d98c
commit
1f459262b0
@ -1523,7 +1523,6 @@ static void pch_udc_free_dma_chain(struct pch_udc_dev *dev,
|
|||||||
td = phys_to_virt(addr);
|
td = phys_to_virt(addr);
|
||||||
addr2 = (dma_addr_t)td->next;
|
addr2 = (dma_addr_t)td->next;
|
||||||
pci_pool_free(dev->data_requests, td, addr);
|
pci_pool_free(dev->data_requests, td, addr);
|
||||||
td->next = 0x00;
|
|
||||||
addr = addr2;
|
addr = addr2;
|
||||||
}
|
}
|
||||||
req->chain_len = 1;
|
req->chain_len = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user