Message ID | 20191106202821.GA20347@embeddedor (mailing list archive) |
---|---|
State | Mainlined |
Commit | 66d1b0c0580b7f1b1850ee4423f32ac42afa2e92 |
Headers | show |
Series | [v4] usb: gadget: pch_udc: fix use after free | expand |
diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c index 265dab2bbfac..3344fb8c4181 100644 --- a/drivers/usb/gadget/udc/pch_udc.c +++ b/drivers/usb/gadget/udc/pch_udc.c @@ -1519,7 +1519,6 @@ static void pch_udc_free_dma_chain(struct pch_udc_dev *dev, td = phys_to_virt(addr); addr2 = (dma_addr_t)td->next; dma_pool_free(dev->data_requests, td, addr); - td->next = 0x00; addr = addr2; } req->chain_len = 1;