[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170208191549.GA3998@embeddedgus>
Date: Wed, 8 Feb 2017 13:15:49 -0600
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: gregkh@...uxfoundation.org, balbi@...nel.org,
andriy.shevchenko@...ux.intel.com, bhelgaas@...gle.com,
heikki.krogerus@...ux.intel.com, mail@...oabal.eu,
mina86@...a86.com
Cc: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drivers: usb: gadget: udc: remove pointer dereference after
free
Remove pointer dereference and write after free.
Addresses-Coverity-ID: 1091173
Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
---
drivers/usb/gadget/udc/pch_udc.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c
index a97da64..8a365aa 100644
--- a/drivers/usb/gadget/udc/pch_udc.c
+++ b/drivers/usb/gadget/udc/pch_udc.c
@@ -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;
--
2.5.0
Powered by blists - more mailing lists