[Spice-devel] [PATCH spice 3/5] usbredir: Fix crash caused by MC changes

Hans de Goede hdegoede at redhat.com
Thu Aug 25 03:19:55 PDT 2011


Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 server/usbredir.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/server/usbredir.c b/server/usbredir.c
index 11c4058..eb9b91f 100644
--- a/server/usbredir.c
+++ b/server/usbredir.c
@@ -259,6 +259,7 @@ int usbredir_device_connect(SpiceCharDeviceInstance *sin)
     state->chardev_sin = sin;
     state->rcv_buf = spice_malloc(BUF_SIZE);
     state->rcv_buf_size = BUF_SIZE;
+    redir_chan->state = state;
 
     client_cbs.connect = usbredir_connect;
     client_cbs.migrate = usbredir_migrate;
-- 
1.7.5.1



More information about the Spice-devel mailing list