From 77ca8a319a253bc5526dba850068dd4a66cf5392 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 24 Jun 2013 15:09:53 +0000 Subject: [PATCH] small fix git-svn-id: svn://kolibrios.org@3699 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/bus/usb/uhci.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/bus/usb/uhci.inc b/kernel/trunk/bus/usb/uhci.inc index f269b25d5..d26bcbdb1 100644 --- a/kernel/trunk/bus/usb/uhci.inc +++ b/kernel/trunk/bus/usb/uhci.inc @@ -1698,7 +1698,9 @@ end virtual ; mark it as last one (this will be changed when further packets will be ; allocated), copy Token field from uhci_pipe.Token zeroing bit 20, ; generate ControlStatus field, mark as Active -; (for last descriptor, this will be changed by uhci_insert_transfer). +; (for last descriptor, this will be changed by uhci_insert_transfer), +; zero OrigBufferInfo (otherwise uhci_free_td would try to free it). + and [eax+uhci_gtd.OrigBufferInfo-sizeof.uhci_gtd], 0 mov [eax+uhci_gtd.NextTD-sizeof.uhci_gtd], 1 ; no next TD mov edx, [ebx+uhci_pipe.Token-sizeof.uhci_pipe] mov [eax+uhci_gtd.Token-sizeof.uhci_gtd], edx